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

Question: What nation has a total less than 2, silver of 1 and bronze less than 1?
SQL: SELECT "nation" FROM "medals_table" WHERE "total"<2 AND "bronze"<1 AND "silver"=1;

Question: What's the total with silver being less than 0, less than 1 gold, and 3 bronze?
SQL: SELECT SUM("total") FROM "medals_table" WHERE "bronze"=3 AND "gold"<1 AND "silver"<0;