select fc.method_name as activity,count(distinct fc.tx_hash) as count from near.core.fact_actions_events_function_call fc
inner join near.core.fact_transactions t
on (t.tx_hash=fc.tx_hash)
where t.tx_receiver in ('v2.ref-finance.near','v2.ref-farming.near')
group by activity
order by count desc
limit 10