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

Question: What is the sum of Bronze when the total is more than 27?
SQL: SELECT SUM("bronze") FROM "medal_table" WHERE "total">27;

Question: What is the total number of Bronze when gold is more than 1 and nation is total?
SQL: SELECT COUNT("bronze") FROM "medal_table" WHERE "gold">1 AND "nation"='total';

Question: What is the average Bronze for rank 3 and total is more than 8?
SQL: SELECT AVG("bronze") FROM "medal_table" WHERE "rank"='3' AND "total">8;

Question: What is the sum of Total when rank is 2?
SQL: SELECT SUM("total") FROM "medal_table" WHERE "rank"='2';

Question: What is the Nation when there is a total less than 27, gold is less than 1, and bronze is more than 1?
SQL: SELECT "nation" FROM "medal_table" WHERE "total"<27 AND "gold"<1 AND "bronze">1;