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 total number of goals for when the ties is more than 0, the goals against is more than 35 and the wins is less than 2?
gpt
SELECT COUNT Goals For FROM table WHERE Ties > 0 AND Goals Against > 35 AND Wins < 2