Query deactivation