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

Question: Which Silver is the lowest one that has a Gold larger than 0, and a Rank of total, and a Bronze smaller than 32?
SQL: SELECT MIN("silver") FROM "medals_table" WHERE "gold">0 AND "rank"='total' AND "bronze"<32;

Question: Which Bronze is the lowest one that has a Rank of 3, and a Silver smaller than 2?
SQL: SELECT MIN("bronze") FROM "medals_table" WHERE "rank"='3' AND "silver"<2;

Question: Which Silver has a Nation of china, and a Bronze smaller than 7?
SQL: SELECT SUM("silver") FROM "medals_table" WHERE "nation"='china' AND "bronze"<7;

Question: Which Nation has a Gold of 0, and a Bronze smaller than 6, and a Rank of 6?
SQL: SELECT "nation" FROM "medals_table" WHERE "gold"=0 AND "bronze"<6 AND "rank"='6';