What was the greatest number of wins for a team that had 7 losses and more than 0 draws?
CREATE TABLE table_name_17 (wins INTEGER, losses VARCHAR, draws VARCHAR)
SELECT MAX(wins) FROM table_name_17 WHERE losses = 7 AND draws > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (wins INTEGER, losses VARCHAR, draws VARCHAR) Question: What was the greatest number of wins for a team that had 7 losses and more than 0 draws? [/INST] SELECT MAX(wins) FROM table_name_17 WHERE losses = 7 AND draws > 0 </s>