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

Question: what is the rank when the bronze is less than 0?
SQL: SELECT COUNT("rank") FROM "medal_table" WHERE "bronze"<0;

Question: what is the highest rank when the bronze is less than 1 and the total is less than 1?
SQL: SELECT MAX("rank") FROM "medal_table" WHERE "bronze"<1 AND "total"<1;

Question: what is the lowest amount of silver when the gold is less than 0?
SQL: SELECT MIN("silver") FROM "medal_table" WHERE "gold"<0;

Question: what is the average number of gold when the rank is more than 5?
SQL: SELECT AVG("gold") FROM "medal_table" WHERE "rank">5;

Question: what is the highest amount of silver when gold is 0 for soviet union?
SQL: SELECT MAX("silver") FROM "medal_table" WHERE "gold"=0 AND "nation"='soviet union';