NXP-14750: Implement new nx_children using CTE for SQLServer mssql