┌───────────────────────────────────────────────┐ │{{ │ ├───────────────────────────────────────────────┤ │ component book1 [ │ │ **title** 7 Habits of Highly Effective People│ │ **isbn** 978-1982137274 │ │ **author_name** Sean Covey │ │ ] │ │ component book2 [ │ │ **title** 7 Habits of Highly Effective People│ │ **isbn** 978-1982137274 │ │ **author_name** Stephen Covey │ │ ] │ │ │ │ component book3 [ │ │ **title** The Power of Habit │ │ **isbn** 978-0812981605 │ │ **author_name** Charles Duhigg │ │ ] │ │}} │ │ │ └───────────────────────────────────────────────┘ | | ┌─────────────────┐ │group by **isbn**│ ├─────────────────┤ └─────────────────┘ | ┌─────────────────────────────────────────────────┐ │{{ │ ├─────────────────────────────────────────────────┤ │ rectangle "978-1982137274" as 7habits #White { │ │ component book11 [ │ │ **title** 7 Habits of Highly Effective People│ │ **isbn** 978-1982137274 │ │ **author_name** Sean Covey │ │ ] │ │ │ │ component book12 [ │ │ **title** 7 Habits of Highly Effective People│ │ **isbn** 978-1982137274 │ │ **author_name** Stephen Covey │ │ ] │ │ book11 -[hidden]d- book12 │ │ } │ │ │ │ rectangle "978-0812981605" as power #White { │ │ component book13 [ │ │ **title** The Power of Habit │ │ **isbn** 978-0812981605 │ │ **author_name** Charles Duhigg │ │ ] │ │ } │ │}} │ │ │ └─────────────────────────────────────────────────┘ | ┌────────────────────────────┐ │aggregate by **author_name**│ ├────────────────────────────┤ └────────────────────────────┘ | ┌───────────────────────────────────────────────┐ │{{ │ ├───────────────────────────────────────────────┤ │ component book111 [ │ │ **title** 7 Habits of Highly Effective People│ │ **isbn** 978-1982137274 │ │ **authorNames** [Sean Covey, Stephen Covey] │ │ ] │ │ component book121 [ │ │ **title** The Power of Habit │ │ **isbn** 978-0812981605 │ │ **authorNames** [Charles Duhigg] │ │ ] │ │}} │ │ │ └───────────────────────────────────────────────┘