In the meatime @edje
I suggest you use a bit of SQL.
It's honestly not too tricky to get a query that could do most of the above. @curie curators use something similar :)
If you are on discord, i can get you some links/examples and guide you through it?
Thanks. I'm on Discord indeed.