New QueryTemplateGenerator implementation.