Change query results to a QueryResult.
QueryResult implements Iterable<Value> and Closeable, for results that require closing