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

Question: Which Total has a Gold smaller than 4?
SQL: SELECT MIN("total") FROM "medal_table" WHERE "gold"<4;

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

Question: How much Total has a Bronze smaller than 13, and a Nation of netherlands (ned), and a Gold larger than 4?
SQL: SELECT COUNT("total") FROM "medal_table" WHERE "bronze"<13 AND "nation"='netherlands (ned)' AND "gold">4;