Update query sample