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

Question: Bronze of 2, and a Silver smaller than 0 then what is the sum of the gold?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "bronze"=2 AND "silver"<0;

Question: Smaller than 4, and a Silver larger than 0, and a Rank of 3, and a Bronze smaller than 6 then what is the sum of the gold?
SQL: SELECT SUM("total") FROM "medal_table" WHERE "gold"<4 AND "silver">0 AND "rank"='3' AND "bronze"<6;

Question: Total larger than 3, and a Rank of 4, and a Silver larger than 0 has what average gold?
SQL: SELECT AVG("gold") FROM "medal_table" WHERE "total">3 AND "rank"='4' AND "silver">0;

Question: Total smaller than 10, and a Gold larger than 1 then what is the lowest silver?
SQL: SELECT MIN("silver") FROM "medal_table" WHERE "total"<10 AND "gold">1;