view: add query function for multiple cursors