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_3 (average INTEGER, goals VARCHAR, team VARCHAR)
  ### Question:
  What is the highest average of goals less than 45 for team Real Sociedad?
  ### Answer:
  SELECT MAX(average) FROM table_name_3 WHERE goals < 45 AND team = "real sociedad"