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

Question: How many silver medals when the total was 2 and less than 1 bronze?
SQL: SELECT SUM("silver") FROM "medals_table" WHERE "bronze"<1 AND "total"=2;

Question: What's the total when the bronze was more than 1, silver was 3, and gold was less than 5?
SQL: SELECT SUM("total") FROM "medals_table" WHERE "bronze">1 AND "silver"=3 AND "gold"<5;

Question: What's the gold medal count for Total Nation with a bronze count more than 0 and a total less than 54?
SQL: SELECT MAX("gold") FROM "medals_table" WHERE "bronze">0 AND "nation"='total' AND "total"<54;