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

Question: How many wins does the player ranked lower than 3 with earnings of $3,315,502 have?
SQL: SELECT SUM("wins") FROM "leaders" WHERE "rank">3 AND "earnings">'3,315,502';

Question: What is the highest number of wins of the player with less than $4,976,980 in earnings and a rank lower than 4?
SQL: SELECT MAX("wins") FROM "leaders" WHERE "earnings"<'4,976,980' AND "rank">4;