What is the greatest number of points that has a lost bigger than 5, a difference of - 10 and a played bigger than 12?
CREATE TABLE table_name_66 (points INTEGER, played VARCHAR, lost VARCHAR, difference VARCHAR)
SELECT MAX(points) FROM table_name_66 WHERE lost > 5 AND difference = "- 10" AND played > 12
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (points INTEGER, played VARCHAR, lost VARCHAR, difference VARCHAR) Question: What is the greatest number of points that has a lost bigger than 5, a difference of - 10 and a played bigger than 12? [/INST] SELECT MAX(points) FROM table_name_66 WHERE lost > 5 AND difference = "- 10" AND played > 12 </s>