Context: CREATE TABLE table_name_77 (wins INTEGER, losses VARCHAR, ties VARCHAR)
Question: What is the most wins when the number of losses was less than 4 and there was more than 0 ties?
Answer: SELECT MAX(wins) FROM table_name_77 WHERE losses < 4 AND ties > 0