Add call to aggregate query.