Support for building and querying hierarchical entities.