human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Debut year, Player, Date of birth, Games, Goals, Years at club
###Question: How many games had 22 goals before 1935?
gpt
SELECT SUM Games FROM table WHERE Goals = 22 AND Debut year < 1935