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

Question: For earnings greater than 4,689,368, what is the greatest rank?
SQL: SELECT MAX("rank") FROM "leaders" WHERE "earnings">'4,689,368';

Question: When the united states has 22 wins and a rank greater than 2, what is the total earnings?
SQL: SELECT SUM("earnings") FROM "leaders" WHERE "country"='united states' AND "wins"=22 AND "rank">2;

Question: What is the smallest rank for new zealand?
SQL: SELECT MIN("rank") FROM "leaders" WHERE "country"='new zealand';