n various constraints described above, the dynamic operand appears on the left-hand side of an operator, and signifies that the values can only be determined when the query is evaluated.
The standard JCR-SQL2 grammar defines seven kinds of dynamic operands: property value, length, node name, node local name, full-text search score, lowercase, and uppercase.
ModeShape supports all these types, but adds support for four more: reference value, node path, node depth, and simple arithmetic clauses. ModeShape also allows the dynamic operand to be surrounded by parentheses, which is sometimes convenient for complex queries.
The DynamicOperand rule in ModeShape's extended grammar is: