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"
context: CREATE TABLE table_name_3 (average INTEGER, goals VARCHAR, team VARCHAR)