What team has the most wins with at least 18 goals and less than 5 losses?
CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
SELECT MAX("wins") FROM "final_standing" WHERE "goals_for"=18 AND "losses"<5;