How many gold have a bronze of 1, a rank smaller than 6, and a total less than 3?
CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT SUM("gold") FROM "medals_table" WHERE "bronze"=1 AND "rank"<6 AND "total"<3;