What is the average total of player Simon Donnelly, with a Scottish Cup greater than 0?
CREATE TABLE table_name_2 (total INTEGER, player VARCHAR, scottish_cup VARCHAR)
SELECT AVG(total) FROM table_name_2 WHERE player = "simon donnelly" AND scottish_cup > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (total INTEGER, player VARCHAR, scottish_cup VARCHAR) Question: What is the average total of player Simon Donnelly, with a Scottish Cup greater than 0? [/INST] SELECT AVG(total) FROM table_name_2 WHERE player = "simon donnelly" AND scottish_cup > 0 </s>