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

Question: Which Gold has a Silver of 7, and a Bronze smaller than 7?
SQL: SELECT MIN("gold") FROM "medal_table" WHERE "silver"=7 AND "bronze"<7;

Question: Which Bronze has a Silver of 15, and a Gold smaller than 20?
SQL: SELECT SUM("bronze") FROM "medal_table" WHERE "silver"=15 AND "gold"<20;

Question: Which Bronze has a Silver of 7, and a Total larger than 25?
SQL: SELECT MIN("bronze") FROM "medal_table" WHERE "silver"=7 AND "total">25;

Question: Which Gold has a Bronze larger than 1, and a Total larger than 80?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "bronze">1 AND "total">80;

Question: Which Total has a Silver larger than 8, and a Bronze of 20, and a Gold smaller than 20?
SQL: SELECT COUNT("total") FROM "medal_table" WHERE "silver">8 AND "bronze"=20 AND "gold"<20;