CREATE TABLE table_name_51 (goals INTEGER, name VARCHAR(255), appearances VARCHAR(255))
What was Lee Smith's highest number of goals when he made fewer than 364 appearances?
    
SQL: SELECT MAX(goals) FROM table_name_51 WHERE name = "lee smith" AND appearances < 364