question: WHAT IS THE AVERAGE SQUAD NUMBER WITH MARTIN SMITH, AND LEAGUE GOALS LESS THAN 17?
answer: SELECT AVG(squad_no) FROM table_name_8 WHERE name = "martin smith" AND league_goals < 17
context: CREATE TABLE table_name_8 (squad_no INTEGER, name VARCHAR, league_goals VARCHAR)