Hi @Gabriel,
Fyi, our AQL (or Analytics Query Language) is currently in Beta. And right now we’re only enabling it on demand for our users.
If you are interesting in trying it out for your use-case above, please see how to enroll in this Release note: [Upcoming] Our brand new Analytics Query Language, AQL!.
I hope this is helpful. Cheers!