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

Question: What's the rank average when the gold medals are less than 0?
SQL: SELECT AVG("rank") FROM "medal_table" WHERE "gold"<0;

Question: What is the total rank of Hungary (HUN) when the bronze medals were less than 0?
SQL: SELECT SUM("rank") FROM "medal_table" WHERE "nation"='hungary (hun)' AND "bronze"<0;

Question: What is the sum of the total number of medals when silver is less than 0?
SQL: SELECT COUNT("total") FROM "medal_table" WHERE "silver"<0;