Apply macros to marker queries.