What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?
CREATE TABLE table_name_46 (league_goals INTEGER, name VARCHAR, fa_cup_apps VARCHAR)
SELECT MAX(league_goals) FROM table_name_46 WHERE name = "barry endean" AND fa_cup_apps > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (league_goals INTEGER, name VARCHAR, fa_cup_apps VARCHAR) Question: What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0? [/INST] SELECT MAX(league_goals) FROM table_name_46 WHERE name = "barry endean" AND fa_cup_apps > 0 </s>