CREATE TABLE table_name_9 (position INT, goal_difference VARCHAR, goals_against VARCHAR, losses VARCHAR)

Which position is the highest to have less than 54 goals, a loss of 7 and a goal difference higher than 23?
SELECT MAX(position) FROM table_name_9 WHERE goals_against < 54 AND losses = 7 AND goal_difference > 23
SELECT MAX("position") FROM "table_name_9" WHERE "goal_difference" > 23 AND "goals_against" < 54 AND "losses" = 7