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

Question: What is the Total medals won by the nation in Rank 6 with less than 2 Bronze medals?
SQL: SELECT SUM("total") FROM "medal_table" WHERE "rank"='6' AND "bronze"<2;

Question: How many Gold medals were won by the Nation that had more than 12 Bronze medals and less than 124 Total medals?
SQL: SELECT COUNT("gold") FROM "medal_table" WHERE "bronze">12 AND "total"<124;