added query templates.