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

Question: Which Nation has Silver smaller than 16, Bronze larger than 6, and Gold of 2?
SQL: SELECT "nation" FROM "medal_table" WHERE "silver"<16 AND "bronze">6 AND "gold"=2;

Question: Which Gold has a Nation of south korea (kor), and Bronze smaller than 65?
SQL: SELECT AVG("gold") FROM "medal_table" WHERE "nation"='south korea (kor)' AND "bronze"<65;

Question: Which Total has Gold of 2?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "gold"=2;

Question: Which Total has Gold smaller than 12, and a Nation of hong kong (hkg)?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "gold"<12 AND "nation"='hong kong (hkg)';

Question: Which Gold has a Total of 721?
SQL: SELECT AVG("gold") FROM "medal_table" WHERE "total"=721;