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

Question: what is the least bronze when the rank is 3 and silver is less than 2?
SQL: SELECT MIN("bronze") FROM "medal_table" WHERE "rank"='3' AND "silver"<2;

Question: what is the total when bronze is 0 and the nation is hungary?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "bronze"=0 AND "nation"='hungary';

Question: what is the total when the rank is 7 and gold is more than 0?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "rank"='7' AND "gold">0;

Question: what is the highest gold when the nation is total and the total is less than 24?
SQL: SELECT MAX("gold") FROM "medal_table" WHERE "nation"='total' AND "total"<24;