What is the average total medals of the team with 2 gold and less than 1 silver?
CREATE TABLE "medal_table" (
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT AVG("total") FROM "medal_table" WHERE "gold"=2 AND "silver"<1;