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

Question: What is the average number of silver medals with more than 6 gold meals and less than 5 bronze medals?
SQL: SELECT AVG("silver") FROM "medal_table" WHERE "gold">6 AND "bronze"<5;

Question: How many ranks are for Switzerland with more than 2 total medals?
SQL: SELECT COUNT("rank") FROM "medal_table" WHERE "nation"='switzerland' AND "total">2;