Distinct clause
Functionally
The distinct clause takes a set of nodes and produces a set of rows.
Syntax
distinct-clause: 'distinct'
Comparison
The distinct compares each row with previous rows and only adds the row if it's considered different. A row is considered equal to another row if it has the same amount of child nodes and all direct children have the same name and value as the other row.