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

Question: What is the total number of gold medals won by nations that won 2 silver medals but fewer than 7 in total?
SQL: SELECT SUM("gold") FROM "performance_by_nation" WHERE "silver"=2 AND "total"<7;

Question: What is the total number of medals won by nations that had 7 bronze medals and more than 18 gold medals?
SQL: SELECT SUM("total") FROM "performance_by_nation" WHERE "bronze"=7 AND "gold">18;

Question: What nation with Rank 1 won the fewest gold medals while winning more than 11 silver but fewer than 7 bronze medals?
SQL: SELECT MIN("gold") FROM "performance_by_nation" WHERE "silver">11 AND "rank"='1' AND "bronze"<7;

Question: What is the highest total medals won by a nation that had 7 bronze but more than 12 silver medals?
SQL: SELECT MAX("total") FROM "performance_by_nation" WHERE "bronze"=7 AND "silver">12;

Question: What nation won the fewest gold medals while being in Rank 1, with a total of 37 medals and more than 7 bronze medals?
SQL: SELECT MIN("gold") FROM "performance_by_nation" WHERE "total"=37 AND "rank"='1' AND "bronze">7;