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_88 (goals INTEGER, rank VARCHAR, matches VARCHAR)
  ### Question:
  What is the mean number of goals when the rank's less than 8 and there are 261 matches?
  ### Answer:
  SELECT AVG(goals) FROM table_name_88 WHERE rank < 8 AND matches = 261