What's the smallest total with a bronze count of 5 and a gold count less than 8?
CREATE TABLE "performances_by_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT MIN("total") FROM "performances_by_nation" WHERE "bronze"=5 AND "gold"<8;