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

Question: How many Gold medals for the country with a Rank of 1 and less than 2 Total medals?
SQL: SELECT COUNT("gold") FROM "medal_table" WHERE "rank"='1' AND "total"<2;

Question: How many Gold medals does the country with 2 Silver and more than 2 Bronze have?
SQL: SELECT COUNT("gold") FROM "medal_table" WHERE "silver"=2 AND "bronze">2;