What's the smallest amount of earnings when there are more than 18 wins and the rank is 2?
CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
SELECT MIN("earnings") FROM "leaders" WHERE "wins">18 AND "rank"=2;