Query editor
with builder_label (address, name) AS (VALUES(0x5124fcC2B3F99F571AD67D075643C743F38f1C34,'f1b.io'),(0xBaF6dC2E647aeb6F510f9e318856A1BCd66C5e19,'Blocknative'),(0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97,'Titan Builder'),(0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5,'beaverbuild'),(0x1f9090aae28b8a3dceadf281b0f12828e676c326,'rsync-builder'),(0x333333f332a06ECB5D20D35da44ba07986D6E203,'rsync-builder'),(0x965Df5Ff6116C395187E288e5C87fb96CfB8141c,'bloXroute'),(0xf573d99385c05c23b24ed33de616ad16a43a0919,'bloXroute'),(0xf2f5c73fa04406b1995e397b55c24ab1f3ea726c,'bloXroute'),(0x199d5ed7f45f4ee35960cf22eade2076e95b253f,'bloXroute'),(0x690b9a9e9aa1c9db991c7721a92d351db4fac990,'builder0x69'),(0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5,'Flashbots: Builder'),(0xb64a30399f7f6b0c154c2e7af0a3ec7b0a5b131a,'Flashbots: Builder'),(0xc83dad6e38BF7F2d79f2a51dd3C4bE3f530965D6,'Flashbots: Builder')), maestro as (SELECT distinct"from" AS user-- , value AS feesFROMethereum.tracesWHERE"to" = 0xCac0F1A06D3f02397Cfb6D7077321d73b504916e -- maestro walletAND tx_success = trueAND call_type = 'call'AND value > uint256 '0'and block_time > NOW() - INTERVAL '7' DAY), mevblocker as (selectfrom_hex(CAST(json_extract(transactions, '$[0].hash') AS VARCHAR)) as user_txfrom mevblocker.raw_bundleswhere date_trunc('day', from_unixtime("timestamp" / 1000.0)) > now() - interval '7' daygroup by 1), mevshare as (select 'Flashbots Protect' as origin, 10000000 as amount, 'Flashbots Builder' as destination, null as exampleunion allselect 'Unibot', 5000000 as amount, 'Flashbots Protect', null), mevblocker_origin as (selectcase when m.user is not null then 'Maestro Telegram Bot'else 'Unlabeled'end as origin,sum(amount_usd) as amount,'MEVBlocker' as destination,max(q.tx_hash) as examplefrom mevblocker tjoin query_2971177 q on q.tx_hash = t.user_txleft join maestro m on m.user = q.tx_fromgroup by 1,3order by 2 desc), mevblocker_builder as (select 'MEVBlocker' as origin,sum(amount_usd) as amount,coalesce(l.name, 'Other Builders') as destination,max(q.tx_hash) as examplefrom mevblocker tjoin query_2971177 q on q.tx_hash = t.user_tx