queries template updated