query.pump(cursor) as well as stream