human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Round, Date, Opponent, Venue, Attendance
###Question: What is the average attendance at a game held at Firhill for the 5(r) round?
gpt
SELECT AVG Attendance FROM table WHERE Venue = firhill AND Round = 5(r)