Update to Query