I have a tree: Story > Defect > Task
Both "Story" and "Defect Cards" have a "State" property - BA, Dev, QA, Failed, Accepted.
I want an MQL query that will show any Story cards with a state of "Failed" that either:
1. Don't have any defects attached to the story
2. All defects attached to the story are in the "Accepted" state.
How can I express this query in MQL?