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

Question: Which total is highest with 0 gold and more than 0 silver, in Ukraine?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "gold"=0 AND "silver">0 AND "nation"='ukraine';

Question: What is the total rank with more than 2 silver and total larger than 10?
SQL: SELECT SUM("rank") FROM "medal_table" WHERE "silver"=2 AND "total">10;

Question: What is the total rank with a total larger than 2, and less than 0 gold
SQL: SELECT SUM("rank") FROM "medal_table" WHERE "total">2 AND "gold"<0;

Question: Which is the highest bronze with gold less than 0?
SQL: SELECT MAX("bronze") FROM "medal_table" WHERE "gold"<0;

Question: What is the total with a rank less than 5, gold larger than 5 and bronze larger than 8?
SQL: SELECT SUM("total") FROM "medal_table" WHERE "rank"<5 AND "gold">5 AND "bronze">8;