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

Question: What is the average number of Gold medals when there are 5 bronze medals?
SQL: SELECT AVG("gold") FROM "medal_table" WHERE "bronze"=5;

Question: What is the highest amount of bronze medals when the rank was larger than 9?
SQL: SELECT MAX("bronze") FROM "medal_table" WHERE "rank">9;

Question: What is the leowest number of Bronze medals for Jamaica who ranked less than 4 and had more than 0 silver medals and a total of less than 22 medals?
SQL: SELECT MIN("bronze") FROM "medal_table" WHERE "silver">0 AND "rank"<4 AND "nation"='jamaica' AND "total"<22;