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

Question: How many bronze medals for the nation with less than 1 total?
SQL: SELECT MAX("bronze") FROM "medals_table" WHERE "total"<1;

Question: How many bronze medals for the nation ranked above 2, and under 0 golds?
SQL: SELECT COUNT("bronze") FROM "medals_table" WHERE "rank"<2 AND "gold"<0;

Question: How many silvers for japan (1 gold)?
SQL: SELECT SUM("silver") FROM "medals_table" WHERE "nation"='japan' AND "gold">1;