Did you intend to find TableSubQuery node which contains at least one target? If you did, 'break' may be required. 
But, do we need to find TableSubQuery which contains all the targets?