human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Position, Club, Played, Points, Wins, Draws, Losses, Goals for, Goals against, Goal Difference
###Question: What is the average loss with a goal higher than 51 and wins higher than 14?
gpt
SELECT AVG Losses FROM table WHERE Goals against > 51 AND Wins > 14