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

Question: Can you tell me the average Total that had the Silver of 0, and the Rank of 6, and the Gold smaller than 0?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "silver"=0 AND "rank"='6' AND "gold"<0;

Question: Can you tell me the highest Gold that has the Bronze larger than 3, and the Total smaller than 24?
SQL: SELECT MAX("gold") FROM "medal_table" WHERE "bronze">3 AND "total"<24;

Question: Can you tell me the highest Gold that has the Bronze smaller than 1, and the Total larger than 4?
SQL: SELECT MAX("gold") FROM "medal_table" WHERE "bronze"<1 AND "total">4;