Mapping an array and a query
Nested arrays