Update query version