<value> <=> [<lower>, <upper>]Example: Judge whether "abc" is in the closed interval ["123", "abc"]
UQLreturn "abc" <=> ["123", "abc"]
Result1
Example: Judge whether PI is in the closed interval [3.14, 3.15]
UQLwith [3.14, 3.15] as a return pi() <=> [a[0], a[1]]
Result1
Example: Judge each row of an alias whether it is in the closed interval [2, 4]
UQLuncollect [1,2,3,2,2] as a return a <=> [2, 4]
Result0 1 1 1 1
Sample graph: (to be used for the following examples)

Example: Find nodes whose age is in the closed interval [25, 35]
UQLfind().nodes({age <=> [25, 35]}) as n return n{*}
Result|--------------- @professor --------------| | _id | _uuid | age | email | |-------|-------|-------|-----------------| | P002 | 2 | 27 | [email protected] | |---------------- @student ---------------| | _id | _uuid | age | email | |-------|-------|-------|-----------------| | S001 | 3 | 27 | [email protected] | | S003 | 5 | 25 | [email protected] |
Example: Find nodes of @professor, whose age is in the closed interval [25, 35]
UQLfind().nodes({@professor.age <=> [25, 35]}) as n return n{*}
Result|--------------- @professor --------------| | _id | _uuid | age | email | |-------|-------|-------|-----------------| | P002 | 2 | 27 | [email protected] |