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

Question: Which Total is the lowest one that has a Bronze of 0, and a Silver larger than 0, and a Rank of 5?
SQL: SELECT MIN("total") FROM "medals" WHERE "bronze"=0 AND "silver">0 AND "rank"=5;

Question: Which Bronze has a Total smaller than 2, and a Silver larger than 0, and a Gold smaller than 0?
SQL: SELECT SUM("bronze") FROM "medals" WHERE "total"<2 AND "silver">0 AND "gold"<0;

Question: Which Rank is the lowest one that has a Nation of switzerland, and a Bronze smaller than 0?
SQL: SELECT MIN("rank") FROM "medals" WHERE "nation"='switzerland' AND "bronze"<0;

Question: Which Total is the highest one that has a Bronze of 0, and a Nation of poland, and a Gold smaller than 0?
SQL: SELECT MAX("total") FROM "medals" WHERE "bronze"=0 AND "nation"='poland' AND "gold"<0;