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

Question: What is the highest total number of medals for a team ranked smaller than 1 and had 20 gold medals?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "gold"=20 AND "rank"<1;

Question: What is the nation that had more than 1 gold medal and a total of 62 medals?
SQL: SELECT "nation" FROM "medal_table" WHERE "gold">1 AND "total"=62;

Question: What is the highest total medals when there were 0 gold medals and 1 silver?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "silver"=1 AND "gold"<0;