human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Player, Position, Starter, Touchdowns, Extra points, Field goals, Points
###Question: What is the average number of field goals scored by a right halfback who had more than 3 touchdowns?
gpt
SELECT AVG Field goals FROM table WHERE Position = right halfback AND Touchdowns > 3