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

Question: Which Bronze has a Silver of 15, and a Total smaller than 54?
SQL: SELECT MIN("bronze") FROM "medal_table" WHERE "silver"=15 AND "total"<54;

Question: How many Bronzes have a Rank of 9, and a Silver larger than 2?
SQL: SELECT SUM("bronze") FROM "medal_table" WHERE "rank"='9' AND "silver">2;

Question: How many totals have a Silver of 40, and a Gold smaller than 39?
SQL: SELECT COUNT("total") FROM "medal_table" WHERE "silver"=40 AND "gold"<39;