Find all subId from the tree