Implementing support for pulling data from long running or multi-page queries