Could anyone suggest please is it possible to break recursion function if circular dependency happend and query freeze ?
with SubstitutionRecursion as (select