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_51 (avg_game INTEGER, goals VARCHAR, rank VARCHAR)
  ### Question:
  What is the average avg/game of the player with 97 goals and a rank above 7?
  ### Answer:
  SELECT AVG(avg_game) FROM table_name_51 WHERE goals = 97 AND rank < 7