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

Question: What is the rank with a higher than 2 total, 21 gold and more than 12 bronze?
SQL: SELECT AVG("rank") FROM "medal_table_by_country" WHERE "total">2 AND "gold"=21 AND "bronze">12;

Question: How many golds does Germany have with more than 1 silver?
SQL: SELECT SUM("gold") FROM "medal_table_by_country" WHERE "silver">1 AND "nation"='germany';