human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Pos., Team, Wins, Ties, Losses, Goals, Diff., Points
###Question: What is the most wins when the number of losses was less than 4 and there was more than 0 ties?
gpt
SELECT MAX Wins FROM table WHERE Losses < 4 AND Ties > 0