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

Question: Which Silver has a Total of 7, and a Gold larger than 1?
SQL: SELECT AVG("silver") FROM "medal_table" WHERE "total"=7 AND "gold">1;

Question: Which Bronze has a Gold smaller than 16, a Rank of 10, and a Nation of italy?
SQL: SELECT AVG("bronze") FROM "medal_table" WHERE "gold"<16 AND "rank"='10' AND "nation"='italy';

Question: Which Total has a Bronze larger than 2, a Gold smaller than 16, a Silver of 0, and a Rank of 13?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "bronze">2 AND "gold"<16 AND "silver"=0 AND "rank"='13';

Question: Which Gold has a Nation of malaysia, and a Silver smaller than 0?
SQL: SELECT MIN("gold") FROM "medal_table" WHERE "nation"='malaysia' AND "silver"<0;