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: what is the average losses when the wins is 3?
gpt
SELECT AVG Losses FROM table WHERE Wins = 3