command CSV output shouldn't return duplicates.
Use Virtuoso's option(transitive) to count the number of steps to the common ancestor, instead of tracing the ancestor back to the root of the tree.