Try improving `isSharedWith`
This commit tries to improve the `isSharedWith` SQL function to deal with arbitrarily deep shared nodes in the hierarchy.
This commit tries to improve the `isSharedWith` SQL function to deal with arbitrarily deep shared nodes in the hierarchy.