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

Question: When tennis has less than 2 bronze, what is the total number of Gold?
SQL: SELECT COUNT("gold") FROM "medal_table" WHERE "sport"='tennis' AND "bronze"<2;

Question: When volleyball has 2 bronze, what is the total number of silver?
SQL: SELECT COUNT("silver") FROM "medal_table" WHERE "bronze"=2 AND "sport"='volleyball';

Question: When athletics has a total more than 2 and 0 gold, what is the total number of bronze?
SQL: SELECT COUNT("bronze") FROM "medal_table" WHERE "total">2 AND "gold"=0 AND "sport"='athletics';