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

Question: Which Bronze has a Rank of 9?
SQL: SELECT COUNT("bronze") FROM "medal_table" WHERE "rank"='9';

Question: Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china?
SQL: SELECT MAX("bronze") FROM "medal_table" WHERE "gold"<1 AND "rank"='17' AND "nation"='china';

Question: Which Nation has a Bronze smaller than 1, and a Total larger than 1, and a Silver of 1?
SQL: SELECT "nation" FROM "medal_table" WHERE "bronze"<1 AND "total">1 AND "silver"=1;

Question: Which Total has a Rank of 17, and a Gold larger than 0?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "rank"='17' AND "gold">0;

Question: Which Gold has a Rank of 15, and a Total smaller than 2?
SQL: SELECT AVG("gold") FROM "medal_table" WHERE "rank"='15' AND "total"<2;