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

Question: What rank has less than 16 gold, more than 2 bronze and silver, and a total of 14?
SQL: SELECT "rank" FROM "medal_table" WHERE "gold"<16 AND "bronze">2 AND "silver">2 AND "total"=14;

Question: What's the silver for rank 1 with less than 2 bronze?
SQL: SELECT MIN("silver") FROM "medal_table" WHERE "rank"='1' AND "bronze"<2;

Question: What's the lowest total when there's less than 16 bronze and more than 6 silver?
SQL: SELECT MIN("total") FROM "medal_table" WHERE "bronze"<16 AND "silver">6;

Question: What's the lowest gold with a total over 15 and less than 16 silver?
SQL: SELECT MIN("gold") FROM "medal_table" WHERE "total">15 AND "silver"<16;