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

Question: What is the largest total when the rank is 6 and there's less than 1 gold?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "rank"='6' AND "gold"<1;

Question: What is the largest gold number when the total is less than 3, the rank is 5, and the silver is more than 1?
SQL: SELECT MAX("gold") FROM "medal_table" WHERE "total"<3 AND "rank"='5' AND "silver">1;

Question: What is the total of silver when gold is less than 0?
SQL: SELECT SUM("silver") FROM "medal_table" WHERE "gold"<0;