CREATE TABLE table_name_25 (attendance VARCHAR(255), visitor VARCHAR(255), record VARCHAR(255))
What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5?
    
SQL: SELECT COUNT(attendance) FROM table_name_25 WHERE visitor = "detroit" AND record = "36–13–5"