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

Question: What is the total number of silver medals of the team with less than 2 gold, 1 bronze, and more than 2 total medals?
SQL: SELECT COUNT("silver") FROM "medal_table" WHERE "gold"<2 AND "bronze"=1 AND "total">2;

Question: What is the highest number of silver medals of the team with less than 0 bronzes?
SQL: SELECT MAX("silver") FROM "medal_table" WHERE "bronze"<0;

Question: What is the total number of silver medals of the team ranked 7 with more than 1 total medal?
SQL: SELECT COUNT("silver") FROM "medal_table" WHERE "rank"='7' AND "total">1;

Question: What is the average number of bronze medals of the team with 0 silvers, ranked 3, and less than 1 total medal?
SQL: SELECT AVG("bronze") FROM "medal_table" WHERE "silver"=0 AND "rank"='3' AND "total"<1;

Question: What is the number of silver medals of the team with 0 gold, ranked 5, and more than 0 bronze medals?
SQL: SELECT SUM("silver") FROM "medal_table" WHERE "gold"=0 AND "rank"='5' AND "bronze">0;