add Xap\Engine logic for pagination in :query command