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

Question: Where does Iceland rank with under 19 silvers?
SQL: SELECT MAX("rank") FROM "medals_table" WHERE "nation"='iceland' AND "silver"<19;

Question: How many bronzes for nations with over 22 golds and ranked under 2?
SQL: SELECT MAX("bronze") FROM "medals_table" WHERE "gold">22 AND "rank"<2;

Question: How many golds for the nation with 14 total?
SQL: SELECT "gold" FROM "medals_table" WHERE "total"=14;

Question: How many bronzes for Iceland with over 2 silvers?
SQL: SELECT AVG("bronze") FROM "medals_table" WHERE "silver">2 AND "nation"='iceland';