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

Question: What is the average earnings of the player from the United States with a win smaller than 2 and a rank larger than 3?
SQL: SELECT AVG("earnings") FROM "leaders" WHERE "country"='united states' AND "wins"<2 AND "rank">3;

Question: What is the average events that Al Geiberger played with wins smaller than 1?
SQL: SELECT AVG("events") FROM "leaders" WHERE "player"='al geiberger' AND "wins"<1;

Question: What is the rank where the events is 31?
SQL: SELECT "rank" FROM "leaders" WHERE "events"=31;

Question: What is the total number of events that Al Geiberger has played with earnings larger than 527,033?
SQL: SELECT COUNT("events") FROM "leaders" WHERE "player"='al geiberger' AND "earnings">'527,033';

Question: What is the average events where the rank is smaller than 2 and wins are smaller than 5?
SQL: SELECT AVG("events") FROM "leaders" WHERE "rank"<2 AND "wins"<5;