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

Question: What is the rank for total less than 5, 1 bronze and less than 1 silver?
SQL: SELECT AVG("rank") FROM "performances_by_nation" WHERE "total"<5 AND "bronze"=1 AND "silver"<1;

Question: What is the most possible bronze medals when rank is more than 11 and there are fewer than 0 gold medals?
SQL: SELECT MAX("bronze") FROM "performances_by_nation" WHERE "rank">11 AND "gold"<0;

Question: What is the least total when there are more than 2 golds and fewer than 0 silver?
SQL: SELECT MIN("total") FROM "performances_by_nation" WHERE "gold">2 AND "silver"<0;