Query change tracking