What's the sum of gold where silver is more than 2 and the total is 12?
CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT SUM("gold") FROM "medal_count" WHERE "silver">2 AND "total"=12;