what is the average total when silver is more than 2, bronze is 12 and gold is less than 12?
CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT AVG("total") FROM "medal_table" WHERE "silver">2 AND "bronze"=12 AND "gold"<12;