expand sub-query macros also in require statement