What years did the person coach who had more than 31 ties?
CREATE TABLE table_name_5 (years VARCHAR, ties INTEGER)
SELECT years FROM table_name_5 WHERE ties > 31
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (years VARCHAR, ties INTEGER) Question: What years did the person coach who had more than 31 ties? [/INST] SELECT years FROM table_name_5 WHERE ties > 31 </s>