<|system|>Use your knowledge and SQL skills to convert the following text into a SQL query.
Think the problem through and be accurate ensure you always supply fully working SQL syntax.

SQL Statments should be wrapped in <codestart type="sql"> and </codeend> tags.

Example output:
<codestart type="sql">SELECT * FROM table_name;</codeend>
<codestart type="sql">SELECT column_name FROM table_name WHERE column_name = 'value';</codeend><|end|><|user|>What is the debut year for the player with fewer than 54 games, fewer than 8 goals and 1989 at club?

SQL Table Create Statement:
CREATE TABLE table_name_6 (debut_year INTEGER, goals VARCHAR, games VARCHAR, years_at_club VARCHAR)<|end|><|assistant|><codestart type="sql">SELECT AVG(debut_year) FROM table_name_6 WHERE games < 54 AND years_at_club = "1989" AND goals < 8</codeend><|end|>