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_82 (wins INTEGER, against VARCHAR, losses VARCHAR)
  ### Question:
  When against is more than 1244 with less than 8 losses, what is the average of wins?
  ### Answer:
  SELECT AVG(wins) FROM table_name_82 WHERE against > 1244 AND losses < 8