Context: CREATE TABLE table_name_91 (goals INTEGER, name VARCHAR, matches VARCHAR)
Question: What is the average goals for Jimmy Greaves, and matches more than 516?
Answer: SELECT AVG(goals) FROM table_name_91 WHERE name = "jimmy greaves" AND matches > 516