Sample hierarchy and duplicate attribute keys