What is the least total that has fewer golds than 2, a higher rank than 4 and fewer bronzes than 1?
CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT MIN("total") FROM "medal_table" WHERE "gold"<2 AND "rank"=4 AND "bronze"<1;