update with query example