It may be desirable to search for notes whose children or descendants share a property, for example:
$ChildCount>0 & every(descendant,$Checked)
This will find all notes that have a child, for which every descendant is where $Checked is true. In previous versions, it was necessary to query:
$ChildCount>0 & every(descendant(original),$Checked)
The older form was needed because the query applies to an alias, and aliases have no children. However, from v5.8.0, an alias' children are, for the purposes of actions, the children of its original note, and in the same manner its descendants are the descendants of the original note.