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

Question: How much Silver has a Total larger than 9, and a Gold of 14?
SQL: SELECT COUNT("silver") FROM "medals_table" WHERE "total">9 AND "gold"=14;

Question: Which Rank has a Total larger than 9, and a Gold larger than 6?
SQL: SELECT "rank" FROM "medals_table" WHERE "total">9 AND "gold">6;

Question: How much Silver has a Rank of 4, and a Bronze smaller than 12?
SQL: SELECT COUNT("silver") FROM "medals_table" WHERE "rank"='4' AND "bronze"<12;

Question: How many bronzes have a Total of 9?
SQL: SELECT SUM("bronze") FROM "medals_table" WHERE "total"=9;

Question: How much Gold has a Nation of mongolia, and a Total larger than 18?
SQL: SELECT SUM("gold") FROM "medals_table" WHERE "nation"='mongolia' AND "total">18;