What's the gold medal count ranked 2 with a total of more than 21?
CREATE TABLE "performances_by_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT COUNT("gold") FROM "performances_by_nation" WHERE "rank"=2 AND "total">21;