Added templates for queries.