An AQL sentence has the form:
command file.reference{item.list} {selection.criteria} {sort.criteria} {output.specifications} {print.limiters} {modifiers} {(options}
The command and file reference are required. The AQL command must be the first word of the sentence. All other elements are optional and are used to modify either the operator, operand, or output.
Selection criteria, sort criteria, output specifications, print limiters, and modifiers follow the item list.
Relational operators may be used with many of the elements of AQL sentence to allow exact specification of the conditions to be met.
Options, if used, must be placed last and must be preceded by a left parenthesis. The right parenthesis is optional.
The user forms AQL sentences which specify the desired data retrieval functions. The AQL processor, together with the use of dictionaries, permits requests to be stated directly in the terminology used by the application.