How many totals have a Premier League smaller than 6, and a League Cup larger than 0?
CREATE TABLE table_name_9 (total INTEGER, premier_league VARCHAR, league_cup VARCHAR)
SELECT SUM(total) FROM table_name_9 WHERE premier_league < 6 AND league_cup > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (total INTEGER, premier_league VARCHAR, league_cup VARCHAR) Question: How many totals have a Premier League smaller than 6, and a League Cup larger than 0? [/INST] SELECT SUM(total) FROM table_name_9 WHERE premier_league < 6 AND league_cup > 0 </s>