CREATE TABLE table_name_91 (goals INT, name VARCHAR, matches VARCHAR)

What is the average goals for Jimmy Greaves, and matches more than 516?
SELECT AVG(goals) FROM table_name_91 WHERE name = "jimmy greaves" AND matches > 516
SELECT AVG("goals") FROM "table_name_91" WHERE "jimmy greaves" = "name" AND "matches" > 516