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

Question: What is the average silver medals a team ranked 12 with less than 2 bronze has?
SQL: SELECT AVG("silver") FROM "medal_table" WHERE "rank"=12 AND "bronze"<2;

Question: What is the average rank Finland, which has 1 bronze, more than 1 silver, and less than 0 gold, has?
SQL: SELECT AVG("rank") FROM "medal_table" WHERE "bronze"=1 AND "silver">1 AND "nation"='finland' AND "gold"<0;

Question: What is the lowest amount of gold a team with less than 2 total medals, ranked 17, and more than 0 silver medals, has?
SQL: SELECT MIN("gold") FROM "medal_table" WHERE "total"<2 AND "rank"=17 AND "silver">0;