Inspect the query and perform eager loading for __include queries.