As I said, consider to provide an input/output sample of what you have and want to achieve, …
I did that a moment ago. https://mailman.uni-konstanz.de/pipermail/basex-talk/2022-April/017045.html
A simple query can provide the following data display.
id|contributor_count 123|1 45|1 67|1 89|2
These data should be taken for another analysis.
contributor_count|incidence 1|3 2|1
This would be the expected output for such a test case.
I became curious if such a report result could be achieved also without the generation of the first table.
Regards, Markus