This returns parent workflow & lnr for a given object plus the type to differenciate between common task and external task:
select JPP_Lnr, OH_Name, JPP_OType
from UC4.JPP
join UC4.OH on JPP_OH_Idnr = OH_IDNR
where JPP_Object = 'OBJECT'
and OH_DeleteFlag = 0
and OH_Client = 2020
JPPA would hold the attributes.