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

Question: What is the highest Total for the rank 12, and gold less than 0?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "rank"='12' AND "gold"<0;

Question: What is the total number of Total when the Silver is less than 2, and a Bronze is less than 0?
SQL: SELECT COUNT("total") FROM "medal_table" WHERE "silver"<2 AND "bronze"<0;