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

Question: What is the largest total for a team with fewer than 12 bronze, 1 silver and 0 gold medals?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "bronze"<12 AND "gold"=0 AND "silver"=1;

Question: What is the largest total for a team with 1 bronze, 0 gold medals and ranking of 7?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "bronze"=1 AND "rank"='7' AND "gold">0;

Question: What is the number of bronze medals when there are fewer than 0 silver medals?
SQL: SELECT SUM("bronze") FROM "medal_table" WHERE "silver"<0;

Question: What is the highest number of silver medals for a team with total less than 1?
SQL: SELECT MAX("silver") FROM "medal_table" WHERE "total"<1;