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

Question: Which nation has total medals under 63, less than 2 silver, more than 2 bronze, and a rank of 8?
SQL: SELECT "nation" FROM "medal_table" WHERE "total"<63 AND "silver"<2 AND "bronze">2 AND "rank"='8';

Question: How many golds have bronze values of 4 and silver values over 2?
SQL: SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"=4 AND "silver">2;

Question: What is the sum of silver values that have bronze values under 4, golds over 2, and a rank of 3?
SQL: SELECT SUM("silver") FROM "medal_table" WHERE "bronze"<4 AND "rank"='3' AND "gold">2;

Question: What is the sum of gold values that have bronze values over 0 and totals under 2?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "bronze">0 AND "total"<2;

Question: What is the smallest gold value that has a total over 15 and bronze values under 31?
SQL: SELECT MIN("gold") FROM "medal_table" WHERE "total">15 AND "bronze"<31;