What is the greatest number of losses when there are more than 0 draws and 1390 against matches?
CREATE TABLE table_name_22 (losses INTEGER, draws VARCHAR, against VARCHAR)
SELECT MAX(losses) FROM table_name_22 WHERE draws > 0 AND against = 1390
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (losses INTEGER, draws VARCHAR, against VARCHAR) Question: What is the greatest number of losses when there are more than 0 draws and 1390 against matches? [/INST] SELECT MAX(losses) FROM table_name_22 WHERE draws > 0 AND against = 1390 </s>