insertInputRelation method complete