What is the total number of points where there were 3 losses and a played number bigger than 12?
CREATE TABLE table_name_40 (points INTEGER, lost VARCHAR, played VARCHAR)
SELECT SUM(points) FROM table_name_40 WHERE lost = 3 AND played > 12
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (points INTEGER, lost VARCHAR, played VARCHAR) Question: What is the total number of points where there were 3 losses and a played number bigger than 12? [/INST] SELECT SUM(points) FROM table_name_40 WHERE lost = 3 AND played > 12 </s>