What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games?
CREATE TABLE table_name_71 (goals_for INTEGER, played VARCHAR, position VARCHAR, losses VARCHAR)
SELECT MAX(goals_for) FROM table_name_71 WHERE position > 8 AND losses = 12 AND played < 30
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (goals_for INTEGER, played VARCHAR, position VARCHAR, losses VARCHAR) Question: What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games? [/INST] SELECT MAX(goals_for) FROM table_name_71 WHERE position > 8 AND losses = 12 AND played < 30 </s>