public function queryGroupItems for pagination, sorting, etc.