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 number of goals against with more than 12 wins, 12 losses, and a position greater than 3?
gpt
SELECT AVG Goals against FROM table WHERE Wins > 12 AND Losses = 12 AND Position > 3