Modify order query template;