What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2?
CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT AVG("gold") FROM "medal_table" WHERE "bronze"=1 AND "total">2 AND "silver"<3;