query.gethierarchy using name