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

Question: What's the lowest Gold if the Rank is over 4 but the Total is less than 1?
SQL: SELECT MIN("gold") FROM "medal_table" WHERE "rank">4 AND "total"<1;

Question: What's the highest bronze with a less than 1 Rank?
SQL: SELECT MAX("bronze") FROM "medal_table" WHERE "rank"<1;

Question: What's the average total if the Bronze is 5 and the Silver is less than 4?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "bronze"=5 AND "silver"<4;