When losses is 6 and draws is more than 0, what is the greatest byes?
CREATE TABLE table_name_24 (byes INTEGER, losses VARCHAR, draws VARCHAR)
SELECT MAX(byes) FROM table_name_24 WHERE losses = 6 AND draws > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (byes INTEGER, losses VARCHAR, draws VARCHAR) Question: When losses is 6 and draws is more than 0, what is the greatest byes? [/INST] SELECT MAX(byes) FROM table_name_24 WHERE losses = 6 AND draws > 0 </s>