Notice that my question is using the generic State Categories, not States.
For example, the results should include User Stories that have state Closed, but have any child work items that are not closed or removed. And it should include Features that are Closed, but have New User Stories. And more scenarios.
I want to be able to identify potentially incorrect status on parent work items.

