with base as (select tx_receiver,
min(block_timestamp) as first_deployment
from near.core.fact_transactions
where tx_hash in (select tx_hash from near.core.fact_actions_events where action_name = 'DeployContract')
group by 1
having first_deployment > '2022-01-01')
select tx_receiver,
count(distinct(tx_signer)) as contract_user,
count(distinct(tx_hash)) as tx_count
from near.core.fact_transactions
where tx_receiver in (select tx_receiver from base)
group by 1
order by 2 desc
limit 5