What is the average wins when teams is lions and the percent is more than 0?
CREATE TABLE table_name_31 (wins INTEGER, teams VARCHAR, percent VARCHAR)
SELECT AVG(wins) FROM table_name_31 WHERE teams = "lions" AND percent > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (wins INTEGER, teams VARCHAR, percent VARCHAR) Question: What is the average wins when teams is lions and the percent is more than 0? [/INST] SELECT AVG(wins) FROM table_name_31 WHERE teams = "lions" AND percent > 0 </s>