What is the total wins with less than 2 ties, 18 goals, and less than 2 losses?
CREATE TABLE "preliminary_round" (
  "rank" real,
  "team" text,
  "played" real,
  "wins" real,
  "ties" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "points" real
);
SELECT SUM("wins") FROM "preliminary_round" WHERE "ties"<2 AND "goals_against"=18 AND "losses"<2;