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

Question: How many medals were won total for the country that won 1 silver and was ranked 2 or lower?
SQL: SELECT COUNT("total") FROM "medal_table" WHERE "silver"=1 AND "rank"<2;

Question: How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4?
SQL: SELECT COUNT("silver") FROM "medal_table" WHERE "gold">0 AND "rank">1 AND "total"<4;

Question: How many bronzes were won by the country with a total higher than 5?
SQL: SELECT SUM("bronze") FROM "medal_table" WHERE "total">5;

Question: How many bronzes were won for the country that had a larger than 3 rank and a silver win count above 0?
SQL: SELECT SUM("bronze") FROM "medal_table" WHERE "rank">3 AND "silver">0;