CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);

Question: What is the total number of wins for golfers whose earnings are 313,845 dollars and rank is larger than 4?
SQL: SELECT COUNT("wins") FROM "leaders" WHERE "earnings"='313,845' AND "rank">4;

Question: What is the total number of earnings for golfers who have 28 events and more than 2 wins?
SQL: SELECT COUNT("earnings") FROM "leaders" WHERE "events"=28 AND "wins">2;