Improve query module doc

Add info about how keyword queries are expanded to query expression
macros and about query composition.