human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Tournament, Wins, Top-5, Top-25, Events, Cuts made
###Question: What is the fewest wins for Thomas in events he had entered exactly 9 times?
gpt
SELECT MIN Wins FROM table WHERE Events = 9