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

Question: How much Rank has a Bronze of 21, and a Silver larger than 10?
SQL: SELECT COUNT("rank") FROM "medal_tally" WHERE "bronze"=21 AND "silver">10;

Question: Which Gold has a Nation of sri lanka, and a Silver smaller than 10?
SQL: SELECT AVG("gold") FROM "medal_tally" WHERE "nation"='sri lanka' AND "silver"<10;

Question: How much Silver has a Rank of 7?
SQL: SELECT COUNT("silver") FROM "medal_tally" WHERE "rank"=7;

Question: Which Gold has a Rank smaller than 5, and a Bronze of 20?
SQL: SELECT AVG("gold") FROM "medal_tally" WHERE "rank"<5 AND "bronze"=20;

Question: Which Silver has a Rank of 6, and a Bronze smaller than 3?
SQL: SELECT MIN("silver") FROM "medal_tally" WHERE "rank"=6 AND "bronze"<3;