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

Question: What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2?
SQL: SELECT MIN("total") FROM "performances_by_nation" WHERE "rank">2 AND "bronze"=1 AND "silver">0 AND "gold"<0;

Question: How many Bronze medals were received by the nation that Ranked less than 5 and received more than 2 Gold medals, less than 4 Silver medals with a Total of 9 medals?
SQL: SELECT AVG("bronze") FROM "performances_by_nation" WHERE "rank"<5 AND "gold">2 AND "total"=9 AND "silver"<4;