Hi,
BPA workqueue items table has session id. do an inner join to BPA session and BPA resources table on the session Id and resource id so you can get the resource name.
select q.keyvalue as 'KEY_Value',r.name as 'Resourcename' from BPAWorkQueueItem q inner join BPASession s on q.sessionid=s.sessionid inner join BPAResource r on s.runningresourceid=r.resourceid inner join BPAWorkQueue W on q.queueid=w.id where w.name='queuename'
------------------------------
Jerin Jose
RPA Product SME
EY
Asia/Kolkata
------------------------------