human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Player, Country, Year(s) won, Total, To par, Finish
###Question: What is the average total of player hale irwin, who had a t52 finish?
gpt
SELECT AVG Total FROM table WHERE Finish = t52 AND Player = hale irwin