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

Question: How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals?
SQL: SELECT "silver" FROM "medals_table" WHERE "bronze">0 AND "total"<54 AND "nation"='spain';

Question: What was the highest number of gold medals when there were 0 silver medals?
SQL: SELECT MAX("gold") FROM "medals_table" WHERE "silver"<0;