What was Lee Smith's highest number of goals when he made fewer than 364 appearances?
CREATE TABLE table_name_51 (goals INTEGER, name VARCHAR, appearances VARCHAR)
SELECT MAX(goals) FROM table_name_51 WHERE name = "lee smith" AND appearances < 364
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (goals INTEGER, name VARCHAR, appearances VARCHAR) Question: What was Lee Smith's highest number of goals when he made fewer than 364 appearances? [/INST] SELECT MAX(goals) FROM table_name_51 WHERE name = "lee smith" AND appearances < 364 </s>