human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: League, Sport, Season, Total attendance, Average attendance
###Question: What's the total attendance in rink hockey when the average attendance was smaller than 4850?
gpt
SELECT Total attendance FROM table WHERE Average attendance < 4850 AND Sport = rink hockey