select distinct territoryId from request.qmd_userTerritories where parentTerritoryId in ()