What were the highest losses when the goal was smaller than 45 and the points was smaller than 18?
CREATE TABLE "relegation_playoff" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
SELECT MAX("losses") FROM "relegation_playoff" WHERE "goals_for"<45 AND "points"<18;