CREATE TABLE "performances_by_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);

Question: What's the rank that has a total of less than 1?
SQL: SELECT SUM("rank") FROM "performances_by_nation" WHERE "total"<1;

Question: What's the bronze medal count when the silver is less than 3 and the gold is 1?
SQL: SELECT SUM("bronze") FROM "performances_by_nation" WHERE "gold"=1 AND "silver"<3;

Question: What's the gold medal count ranked 2 with a total of more than 21?
SQL: SELECT COUNT("gold") FROM "performances_by_nation" WHERE "rank"=2 AND "total">21;

Question: What's the smallest total with a bronze count of 5 and a gold count less than 8?
SQL: SELECT MIN("total") FROM "performances_by_nation" WHERE "bronze"=5 AND "gold"<8;