Query editor
withlanded_user_tx as (select day, count(tx) as txfrom (selectfrom_hex(CAST(json_extract(transactions, '$[0].hash') AS VARCHAR)) as tx,date_trunc('day', from_unixtime(min(timestamp) / 1000.0)) as dayfrom mevblocker.raw_bundles txjoin ethereum.transactions t on from_hex(CAST(json_extract(tx.transactions, '$[0].hash') AS VARCHAR)) = t.hashwhere t.hash is not nullgroup by 1) a group by 1), landed_bundle as (select day, count(tx) as txfrom (selectfrom_hex(CAST(json_extract(transactions, '$[1].hash') AS VARCHAR)) as tx,date_trunc('day', from_unixtime(min(timestamp) / 1000.0)) as dayfrom mevblocker.raw_bundles txjoin ethereum.transactions t on from_hex(CAST(json_extract(tx.transactions, '$[1].hash') AS VARCHAR)) = t.hashwhere json_array_length(transactions)>1and t.hash is not nullgroup by 1) a group by 1)select coalesce(t.day, b.day) as day,b.tx as bundle,t.tx - b.tx as single_txfrom landed_user_tx tfull join landed_bundle b on t.day = b.day