What years did the person coach who had more than 1 tie, mess than 311 wins and 174 losses?
CREATE TABLE table_name_30 (years VARCHAR, losses VARCHAR, ties VARCHAR, wins VARCHAR)
SELECT years FROM table_name_30 WHERE ties > 1 AND wins < 311 AND losses = 174
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (years VARCHAR, losses VARCHAR, ties VARCHAR, wins VARCHAR) Question: What years did the person coach who had more than 1 tie, mess than 311 wins and 174 losses? [/INST] SELECT years FROM table_name_30 WHERE ties > 1 AND wins < 311 AND losses = 174 </s>