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_72 (long INTEGER, gain VARCHAR, loss VARCHAR)
  ### Question:
  What is the average long that has 1581 as a gain, with a loss less than 308?
  ### Answer:
  SELECT AVG(long) FROM table_name_72 WHERE gain = 1581 AND loss < 308