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

Question: What is the highest metal total when there are 2 Gold medals, 0 Bronze metals, and the rank is smaller than 2?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "gold"=2 AND "bronze"=0 AND "rank"<2;

Question: What is the total number of silver medals when there are 0 Bronze medals, and the nation is the United Kingdom?
SQL: SELECT COUNT("silver") FROM "medal_table" WHERE "bronze"=0 AND "nation"='united kingdom';

Question: What is the highest rank when the metal total is 1 and the nation is the United Kingdom?
SQL: SELECT MAX("rank") FROM "medal_table" WHERE "total"=1 AND "nation"='united kingdom';

Question: What is the lowest metal total when the Bronze metals are larger than 0, the Gold medals are smaller than 1, and the nation is Switzerland?
SQL: SELECT MIN("total") FROM "medal_table" WHERE "bronze">0 AND "nation"='switzerland' AND "gold"<1;

Question: What is the highest Bronze medal count when the Gold medals are larger than 1 and the silver are smaller than 0?
SQL: SELECT MAX("bronze") FROM "medal_table" WHERE "gold">1 AND "silver"<0;