human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Date, Opponents, H / A, Result F – A, Attendance
###Question: How many people attended the match when Manchester United played against the Hearts?
gpt
SELECT SUM Attendance FROM table WHERE Opponents = hearts