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

Question: How many gold are a rank 1 and larger than 16?
SQL: SELECT COUNT("gold") FROM "medal_table" WHERE "rank"='1' AND "total">16;

Question: How many total gold are less than 4?
SQL: SELECT COUNT("gold") FROM "medal_table" WHERE "total"<4;

Question: What is the total gold that has bronze less than 2, a silver of 1 and total more than 4?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "bronze"<2 AND "silver"=1 AND "total">4;