What is the sum of all points when number played is less than 18?
CREATE TABLE table_name_40 (points INTEGER, played INTEGER)
SELECT SUM(points) FROM table_name_40 WHERE played < 18
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (points INTEGER, played INTEGER) Question: What is the sum of all points when number played is less than 18? [/INST] SELECT SUM(points) FROM table_name_40 WHERE played < 18 </s>