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

Question: How many gold medals correspond with a total over 4?
SQL: SELECT "gold" FROM "medal_table" WHERE "total">4;

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

Question: What is the smallest number of gold medals corresponding to the total rank with more than 4 bronze medals?
SQL: SELECT MIN("gold") FROM "medal_table" WHERE "rank"='total' AND "bronze">4;

Question: What is the smallest number of bronze medals with more than 4 gold medals?
SQL: SELECT MIN("bronze") FROM "medal_table" WHERE "gold">4;