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 average ties when the team is montreal victorias and the games played is more than 8?
gpt
SELECT AVG Ties FROM table WHERE Team = montreal victorias AND Games Played > 8