with swaps as (
select distinct ORIGIN_FUNCTION_SIGNATURE
from ethereum.sushi.ez_swaps
)
select distinct STATUS, count(tx_hash) as total_txs
from ethereum.core.fact_transactions
where ORIGIN_FUNCTION_SIGNATURE in (select ORIGIN_FUNCTION_SIGNATURE from swaps)
group by 1