Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
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?
### Answer:
SELECT AVG(events) FROM table_name_50 WHERE rank = 1 AND wins > 3