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

Question: What is the total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4?
SQL: SELECT COUNT("bronze") FROM "medal_table" WHERE "gold">0 AND "rank"='4' AND "total">4;

Question: What is the total number of Total, when Gold is less than 1, when Silver is greater than 0, when Rank is 14, and when Nation is Afghanistan?
SQL: SELECT COUNT("total") FROM "medal_table" WHERE "gold"<1 AND "silver">0 AND "rank"='14' AND "nation"='afghanistan';

Question: What is the lowest Gold, when Silver is 0, and when Bronze is 2?
SQL: SELECT MIN("gold") FROM "medal_table" WHERE "silver"=0 AND "bronze"=2;

Question: What is the average Bronze, when Silver is 0, when Rank is 19, and when Total is greater than 2?
SQL: SELECT AVG("bronze") FROM "medal_table" WHERE "silver"=0 AND "rank"='19' AND "total">2;