two modifications:
* add RELATION-ADJOIN-ALL function
* implement QUERY macro, initial prototype