Name the most goals with losses less than 15 and position more than 8 with points of 42+4
CREATE TABLE table_name_18 (goals_for INTEGER, points VARCHAR, losses VARCHAR, position VARCHAR)
SELECT MAX(goals_for) FROM table_name_18 WHERE losses < 15 AND position > 8 AND points = "42+4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (goals_for INTEGER, points VARCHAR, losses VARCHAR, position VARCHAR) Question: Name the most goals with losses less than 15 and position more than 8 with points of 42+4 [/INST] SELECT MAX(goals_for) FROM table_name_18 WHERE losses < 15 AND position > 8 AND points = "42+4" </s>