human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Team, Games Played, Wins, Losses, Ties, Goals For, Goals Against
###Question: How many losses did the team with 22 goals for andmore than 8 games played have?
gpt
SELECT COUNT Losses FROM table WHERE Goals For = 22 AND Games Played > 8