How many win total which has the rank smaller than 3 and events smaller than 22
CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
SELECT COUNT("wins") FROM "leaders" WHERE "events"<22 AND "rank"<3;