What is the most wins when the number of losses was less than 4 and there was more than 0 ties?
CREATE TABLE table_name_77 (wins INTEGER, losses VARCHAR, ties VARCHAR)
SELECT MAX(wins) FROM table_name_77 WHERE losses < 4 AND ties > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (wins INTEGER, losses VARCHAR, ties VARCHAR) Question: What is the most wins when the number of losses was less than 4 and there was more than 0 ties? [/INST] SELECT MAX(wins) FROM table_name_77 WHERE losses < 4 AND ties > 0 </s>