Implement canThrow method for SubqueryNode.