query watch working