WHAT IS THE AVERAGE SQUAD NUMBER WITH MARTIN SMITH, AND LEAGUE GOALS LESS THAN 17?
CREATE TABLE table_name_8 (squad_no INTEGER, name VARCHAR, league_goals VARCHAR)
SELECT AVG(squad_no) FROM table_name_8 WHERE name = "martin smith" AND league_goals < 17
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (squad_no INTEGER, name VARCHAR, league_goals VARCHAR) Question: WHAT IS THE AVERAGE SQUAD NUMBER WITH MARTIN SMITH, AND LEAGUE GOALS LESS THAN 17? [/INST] SELECT AVG(squad_no) FROM table_name_8 WHERE name = "martin smith" AND league_goals < 17 </s>