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

Question: What is the sum of gold medals won by teams that won 5 total medals and fewer than 2 bronze medals?
SQL: SELECT SUM("gold") FROM "medals_table" WHERE "total"=5 AND "bronze"<2;

Question: What is the sum of gold medals won by teams that won fewer than 3 silver medals, more than 1 total medal, and rank 10?
SQL: SELECT SUM("gold") FROM "medals_table" WHERE "silver"<3 AND "rank"='10' AND "total">1;

Question: What nation won fewer than 14 total medals, 1 silver medal, and rank 5?
SQL: SELECT "nation" FROM "medals_table" WHERE "total"<14 AND "silver"=1 AND "rank"='5';