select 1 from rss_gen_subscrs r,acs_sc_impls a
where r.summary_context_id=:summary_context_id
and a.impl_name=:impl_name
and a.impl_id=r.impl_id
select impl_id
from acs_sc_impls
where impl_name=:impl_name
and impl_contract_name='RssGenerationSubscriber'
and impl_owner_name=:owner