Groupings based on a list of objects (DMN)

I have a list of objects that I need to pass through several rules for grouping (joining into sublists).
These rules are, for example: grouping if their age is under 18 and they are in the same city, etc.

[{
 data: 29-10-2023,
 nome: people11,
 idade: 16,
 endereço: street 1
},
{
 data: 28-10-2023,
 nome: people1,
 idade: 15,
 endereço: street 1
},{
 data: 27-10-2023,
 nome: people11,
 idade: 15,
 endereço: street 1}]

Question:

  1. How do I get the DMN to go through this list? That is, do this loop?
  2. Is it possible to use the output of one list as input to the other?
  3. Is it possible for the output to be the list with the sublists already ready?

Obs.: I’m using: https://modeler.cloud.camunda.io/

Input:

[{
 data: 29-10-2023,
 nome: people11,
 idade: 16,
 endereço: street 1
},
{
 data: 28-10-2023,
 nome: people1,
 idade: 15,
 endereço: street 1
},{
 data: 27-10-2023,
 nome: people11,
 idade: 15,
 endereço: street 1}]

Output requerid:

[
1o group:
[{
 data: 29-10-2023,
 nome: people11,
 idade: 16,
 endereço: street 1
}]

2o group:
[{
 data: 28-10-2023,
 nome: people11,
 idade: 15,
 endereço: street 1
},{
 data: 27-10-2023,
 nome: people1,
 idade: 15,
 endereço: street 1}]
                                   ]

Hi @Edlane_Lima - I think this is a duplicate topics. I replied in your other topic.