| | query ::= FIND maintable [WHERE expression] [ORDER BY orderbys] [AT DATE]
| VIEW references [WHERE expression] [ORDER BY orderbys] [AT DATE]
orderbys ::= orderby [, orderby]*
orderby ::= refterm [<direction>]
expression ::= ( expression )
| expression LOGICAL_OPERATOR expression
| UNARY_LOGICAL_OPERATOR expression
| condition
condition ::= term OPERATOR term
| term UNARY_OPERATOR
term ::= STRING
| NUMBER
| DATE
| OBJECT
| tablespec [. attrspec]
references ::= refterm [IDENTIFIER] [, refterm]*
refterm ::= tablespec [. attrspec]
attrspec ::= [attrspec .] attribute:attr
attribute ::= IDENTIFIER [ '[' STRING ']' ] [ ( IDENTIFIER ) ]
maintable ::= tablespec
tablespec ::= IDENTIFIER [ ( qualified_identifier ) ]
qualified_identifier
::= [ qualified_identifier . ]* IDENTIFIER
|