Not sure if i'm misunderstanding you're question but:
in AGR_HIER you get the link Role_QueryGUID_QueryDescription
in RSRREPDIR you can input the QueryGUID from AGR_HIER into GENUNIID, so that in COMPID you get the QueryTechname
Not sure if i'm misunderstanding you're question but:
in AGR_HIER you get the link Role_QueryGUID_QueryDescription
in RSRREPDIR you can input the QueryGUID from AGR_HIER into GENUNIID, so that in COMPID you get the QueryTechname