What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers?
CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT COUNT("gold") FROM "medal_table" WHERE "rank"='2' AND "silver"<2;