What is the mean number of events where the rank is 1 and there are more than 3 wins?
CREATE TABLE table_name_50 (events INTEGER, rank VARCHAR, wins VARCHAR)
SELECT AVG(events) FROM table_name_50 WHERE rank = 1 AND wins > 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (events INTEGER, rank VARCHAR, wins VARCHAR) Question: What is the mean number of events where the rank is 1 and there are more than 3 wins? [/INST] SELECT AVG(events) FROM table_name_50 WHERE rank = 1 AND wins > 3 </s>