Storing and retrieving lists of entities - TypeDB