text: 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_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