What is the average Gold, when Total is 2, when Silver is less than 1, and when Rank is greater than 5?
CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT AVG("gold") FROM "medal_table" WHERE "total"=2 AND "silver"<1 AND "rank">5;