CREATE TABLE table_name_71 (goals_for INT, played VARCHAR, position VARCHAR, losses VARCHAR)

What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games?
SELECT MAX(goals_for) FROM table_name_71 WHERE position > 8 AND losses = 12 AND played < 30
SELECT MAX("goals_for") FROM "table_name_71" WHERE "losses" = 12 AND "played" < 30 AND "position" > 8