Updated the OR functionality to handle complex, nested OR operations and added support for IN