What is the total number of squad no when there are more than 8 points, Danny Mcguire is a player, and there are more than 0 goals?
CREATE TABLE table_name_23 (squad_no INTEGER, goals VARCHAR, points VARCHAR, player VARCHAR)
SELECT SUM(squad_no) FROM table_name_23 WHERE points > 8 AND player = "danny mcguire" AND goals > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (squad_no INTEGER, goals VARCHAR, points VARCHAR, player VARCHAR) Question: What is the total number of squad no when there are more than 8 points, Danny Mcguire is a player, and there are more than 0 goals? [/INST] SELECT SUM(squad_no) FROM table_name_23 WHERE points > 8 AND player = "danny mcguire" AND goals > 0 </s>