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

Question: How many events have earnings less than 1,030,717?
SQL: SELECT COUNT("events") FROM "leaders" WHERE "earnings"<'1,030,717';

Question: How many events are in South Africa?
SQL: SELECT SUM("events") FROM "leaders" WHERE "country"='south africa';