CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);

Question: How much Gold has a Bronze larger than 1, and a Silver larger than 2?
SQL: SELECT COUNT("gold") FROM "medal_table" WHERE "bronze">1 AND "silver">2;

Question: Which Total has a Nation of japan (jpn), and a Silver smaller than 1?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "nation"='japan (jpn)' AND "silver"<1;