CREATE TABLE table_name_77 (wins INT, losses VARCHAR, ties VARCHAR)

What is the most wins when the number of losses was less than 4 and there was more than 0 ties?
SELECT MAX(wins) FROM table_name_77 WHERE losses < 4 AND ties > 0
SELECT MAX("wins") FROM "table_name_77" WHERE "losses" < 4 AND "ties" > 0