modify to introduce COUNT aggregation
modify to generate symbols beginning with "%" to avoid symbol capturing