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

Question: What is the sum of the golds of the nation with 5 total and less than 0 bronze medals?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "total"=5 AND "bronze"<0;

Question: What is the sum of the gold medals of the total nation, which has more than 19 silver medals?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "nation"='total' AND "silver">19;

Question: What is the average number of silver medals of the nation with 3 bronzes and more than 4 total medals?
SQL: SELECT AVG("silver") FROM "medal_table" WHERE "bronze"=3 AND "total">4;