Notes on Database Grammar
It is good to write grammar rules that cover multiple sentences, using:
Multiple actions can be combined using do:
(do (retrieve 'streetno) (retrieve 'street))
Questions such as how many or what is the best require post-processing. The result of the query (restrictions and retrievals) is available as the variable $$:
(postpr '(length (quote $$)))In this case, postpr specifies post-processing, and length is the function that is called; this would answer how many.