eusocial animals are really cool you can kinda treat the entire colony as a single organism. weirdly enough this isn't restricted to insects there are actually some eusocial mammals.

https://en.wikipedia.org/wiki/Eusociality

the book coalescent by Stephen Baxter is an interesting take on what that might look like in humans as well if you're interested in the topic.