How Hive builds relationships