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_42 (losses VARCHAR, against VARCHAR, wins VARCHAR)
  ### Question:
  What's the total losses that has more than 12 wins and 1017 against?
  ### Answer:
  SELECT COUNT(losses) FROM table_name_42 WHERE against = 1017 AND wins > 12