added query template