user: ### NOW ANSWER:
Question: Which Games have Years at club of 1977, and Goals of 17, and a Debut year smaller than 1977?
Columns: ['Debut year', 'Player', 'Games', 'Goals', 'Years at club']
Types: ['real', 'text', 'real', 'real', 'text']
Sample row: [1970.0, 'Alan Thompson', 138.0, 59.0, '1970–1979']
SQL:

assistant: SELECT AVG("Games") FROM "Table" WHERE "Years at club" = '1977' AND "Goals" = 17.0 AND "Debut year" < 1977.0;