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

Question: What is the highest silver rank with a total of 27?
SQL: SELECT MAX("silver") FROM "medal_table" WHERE "total"=27;

Question: What is the total number of Silver when Bronze was smaller than 1 with a total smaller than 2 in Bulgaria?
SQL: SELECT COUNT("silver") FROM "medal_table" WHERE "bronze"<1 AND "total"<2 AND "nation"='bulgaria';