EQL enforces the following precedence rules for operators.
All binary operators are left-associative, as are all of the JOIN operators.
When comparing values against sets (multi-assign data), you must use the appropriate set functions and expressions.
RETURN Results AS SELECT Price AS prices WHERE Price > 20
RETURN Results AS SELECT Score AS ratings WHERE Score > 80
In statement "results": In WHERE clause: Cannot compare mdex:long-set and mdex:long
The error message means that Score is a set (an mdex:long-set data type) and therefore cannot be compared to an integer (80, which is an mdex:long data type).
RETURN Results AS SELECT Score AS Ratings WHERE SOME x IN Score SATISFIES (x > 80)
This example uses an existential quantifier expression.