adding query object to result list and iterators for better debugging