also do result fetching and paging in the QueryController