Chapter 6 Query Language Components : Where Clause

Where Clause
The optional where clause is analogous to a rule’s conditions. The expression in the where clause can be simple or complex. In the where clause you can use following:
Examples
where A.customerId = B.customerId
 
where A.id = B@extid                    // Entity attributes
and ( B@parent.name = 'ABCD' or C.name = "EFGH" )
and A.tokens[5] = 50                  // array property
and ( A.containedConceptE.price > 100
or B.startTime > /#DateTime/addMinute(/#DateTime/now(),5) )
and B.value between 2 and 5