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

Question: what is the average bronze when gold is more than 0, the nation is greece and silver is less than 0?
SQL: SELECT AVG("bronze") FROM "medal_table" WHERE "gold">0 AND "nation"='greece' AND "silver"<0;

Question: what is the rank when bronze is less than 1 and silver is less than 1?
SQL: SELECT "rank" FROM "medal_table" WHERE "bronze"<1 AND "silver"<1;