update sample query