The following lines contain the word 'select', 'insert', 'update' or 'delete':
select upper(queue_name), upper(name)
into x_queue_name, x_agent_name
from wf_agents
where guid = p_agent_guid;
select agt2.name ,agt2.address, agt2.protocol, agt2.queue_name
from wf_agent_groups agp ,
wf_agents agt1 ,
wf_agents agt2 ,
wf_systems sys
where agt1.name = agent_name
and agp.group_guid = agt1.guid
and agt1.type = 'GROUP'
and agt1.status = 'ENABLED'
and agt2.guid = agp.member_guid
and sys.name = system_name
and sys.guid = agt2.system_guid;
select agt.queue_name into x_out_queue
from wf_agents agt,
wf_systems sys
where agt.name = x_out_agent_name
and sys.name = x_out_system_name
and sys.guid = agt.system_guid;