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

Question: Which Total has a Gold smaller than 0?
SQL: SELECT SUM("total") FROM "medal_table" WHERE "gold"<0;

Question: Which Bronze has a Gold smaller than 0?
SQL: SELECT AVG("bronze") FROM "medal_table" WHERE "gold"<0;