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

Question: Which is the highest Gold that has a total smaller than 4 and a silver of 1, and a bronze smaller than 2, and a rank of 13?
SQL: SELECT MAX("gold") FROM "medal_table" WHERE "total"<4 AND "silver"=1 AND "bronze"<2 AND "rank"='13';

Question: Which nation has a Bronze and Silver smaller than 1 and a Gold larger than 1?
SQL: SELECT "nation" FROM "medal_table" WHERE "bronze"<1 AND "silver"<1 AND "gold">1;