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

Question: What average bronze has a total less than 1?
SQL: SELECT AVG("bronze") FROM "medal_table" WHERE "total"<1;

Question: What average gold has China (chn) as the nation with a bronze greater than 1?
SQL: SELECT AVG("gold") FROM "medal_table" WHERE "nation"='china (chn)' AND "bronze">1;

Question: Which is the highest gold that has a bronze greater than 4?
SQL: SELECT MAX("gold") FROM "medal_table" WHERE "bronze">4;