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

Question: What is the total number of medals when the gold is more than 2 and silver more than 2?
SQL: SELECT COUNT("total") FROM "medal_count" WHERE "gold">2 AND "silver">2;

Question: What is the most silver medals when the total is less than 4 and the rank is 12?
SQL: SELECT MAX("silver") FROM "medal_count" WHERE "total"<4 AND "rank"='12';

Question: What is the total number of bronze medals when the silver is greater than 0, and the total medals 5?
SQL: SELECT SUM("bronze") FROM "medal_count" WHERE "silver">0 AND "total"=5;

Question: What is the total number of medals when the bronze is more than 1, and Germany is the nation, and gold medals less than 1?
SQL: SELECT COUNT("total") FROM "medal_count" WHERE "bronze">1 AND "nation"='germany' AND "gold"<1;