How many Gold medals for the country with a Rank of 1 and less than 2 Total medals?
CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT COUNT("gold") FROM "medal_table" WHERE "rank"='1' AND "total"<2;