CREATE TABLE table_name_52 (losses VARCHAR2, goals_for VARCHAR2, games_played VARCHAR2)

How many losses did the team with 22 goals for andmore than 8 games played have?
SELECT COUNT(losses) FROM table_name_52 WHERE goals_for = 22 AND games_played > 8
SELECT COUNT("losses") FROM "table_name_52" WHERE "games_played" > 8 AND "goals_for" = 22