The _partof_ logic changed between 0.96/0.97. See https://github.com/buildingSMART/IDS/blob/development/Documentation/partof-facet.md and https://github.com/buildingSMART/IDS/issues/193 In particular, review recursive queries and when nor relation specified. There are some updated tests in IDS development