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

Question: How many totals had a silver larger than 2?
SQL: SELECT COUNT("total") FROM "medal_table" WHERE "silver">2;

Question: What was the average bronze when gold was larger than 1 and silver was larger than 2?
SQL: SELECT AVG("bronze") FROM "medal_table" WHERE "gold">1 AND "silver">2;