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

Question: How many silver medals were awarded to the Nation with less than 2 gold, more than 6 bronze and a rank higher than 5?
SQL: SELECT SUM("silver") FROM "pairs" WHERE "rank">5 AND "bronze">6 AND "gold"<2;

Question: How many gold medals were awarded to teams ranked higher than 19?
SQL: SELECT COUNT("gold") FROM "pairs" WHERE "rank">19;

Question: What is the highest amount of gold medals awarded to a team with more than 9 silver, 7 bronze and more than 13 medals total?
SQL: SELECT MAX("gold") FROM "pairs" WHERE "total">13 AND "silver">9 AND "bronze"=7;