Operators that Generate Sequences
(1 to 3)
from within a Java application, in order to extract the result
from the result sequence, one would have to use this code:
int n = (XSInteger)rs.first()).stringvalue();
println(n);
which returns the sequence consisting of 1, 2, 3.