What is the sum of gold medals with a total of 12 medals and less than 4 bronze medals?
CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT SUM("gold") FROM "medal_table" WHERE "total"=12 AND "bronze"<4;