What is the highest Total for the rank 12, and gold less than 0?
CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT MAX("total") FROM "medal_table" WHERE "rank"='12' AND "gold"<0;