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

Question: What is the total number of Silver, when Gold is "1", and when Bronze is less than 0?
SQL: SELECT COUNT("silver") FROM "medals_by_country" WHERE "gold"=1 AND "bronze"<0;

Question: What is the highest Bronze, when Nation is "South Africa", and when Total is less than 20?
SQL: SELECT MAX("bronze") FROM "medals_by_country" WHERE "nation"='south africa' AND "total"<20;

Question: What is the highest Silver, when Gold is "8", and when Total is greater than 31?
SQL: SELECT MAX("silver") FROM "medals_by_country" WHERE "gold"=8 AND "total">31;

Question: What is the total number of Silver, when Gold is less than 34, when Rank is "6", and when Total is greater than 10?
SQL: SELECT COUNT("silver") FROM "medals_by_country" WHERE "gold"<34 AND "rank"='6' AND "total">10;

Question: What is Bronze, when Silver is less than 89, and when Total is "4"?
SQL: SELECT "bronze" FROM "medals_by_country" WHERE "silver"<89 AND "total"=4;