revert query