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_12 (loss INTEGER, gain VARCHAR, avg_g VARCHAR, long VARCHAR)
  ### Question:
  What is the loss when the average/gain is less than 16.7, gain is 104 and long is larger than 4?
  ### Answer:
  SELECT AVG(loss) FROM table_name_12 WHERE avg_g < 16.7 AND long > 4 AND gain = 104