CREATE TABLE table_name_9 (goals INT, name VARCHAR, ends VARCHAR)

What is the greatest goals for Curtis Davies if ends is greater than 2012?
SELECT MAX(goals) FROM table_name_9 WHERE name = "curtis davies" AND ends > 2012
SELECT MAX("goals") FROM "table_name_9" WHERE "curtis davies" = "name" AND "ends" > 2012