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_87 (wins VARCHAR, losses VARCHAR, rank VARCHAR, run_ratio VARCHAR)
  ### Question:
  How many total wins did the team ranked lower than 1 with a run ratio less than 5.85 and more than 4 losses have?
  ### Answer:
  SELECT COUNT(wins) FROM table_name_87 WHERE rank > 1 AND run_ratio < 5.85 AND losses > 4