@stuart.campbell hi, let’s break down this query from the default glossary domain:
name is "Finance" OR @termRelationship(target).any(type.$id = '125861e2-8f58-43d6-a8a6-7d25b8d524e0' AND source.$id = '15bbce34-0000-7000-0000-00000033052e')
@termRelationship(target).any()
means it’s looking for terms that are in the target/child position of the relationship link,
type.$id = '125861e2-8f58-43d6-a8a6-7d25b8d524e0'
means a specific relationship type, you’ll find it at https://<your-ataccama-base-URL>/organization/applicationSettings/relationshipType/125861e2-8f58-43d6-a8a6-7d25b8d524e0. You can replace this ID with any other relationship type ID from this list https://<your-ataccama-base-URL>/organization/applicationSettings/relationshipTypes
source.$id = '15bbce34-0000-7000-0000-00000033052e'
means that the query is filtering for the specific term in the source/parent position of the relationship, in this case Finance. You will replace it with your domain term ID.
Does this help? Please let me know if you have more questions!