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

Question: how many times is gold more than 0 and the rank less than 2?
SQL: SELECT COUNT("silver") FROM "medal_count_by_country" WHERE "gold">0 AND "rank"<2;

Question: what is the highest total when the nation is france and silver is more than 1?
SQL: SELECT MAX("total") FROM "medal_count_by_country" WHERE "nation"='france' AND "silver">1;

Question: what is the least silver for germany when gold is more than 4?
SQL: SELECT MIN("silver") FROM "medal_count_by_country" WHERE "nation"='germany' AND "gold">4;

Question: How many times is the total less than 15, rank less than 5, bronze is 4 and gold smaller than 3?
SQL: SELECT COUNT("silver") FROM "medal_count_by_country" WHERE "total"<15 AND "rank"<5 AND "bronze"=4 AND "gold"<3;