Query editor
with payment_info as(selecttx.block_number,tx.block_time,tx.index as tx_index,tx."to" as tx_to,tx."from" as tx_from,tx.value / (pow(10,18)) as paymentfrom ethereum.transactions as txwheretx.block_number >= 15537394),block_info as (selectblock.number as block_number,minerfrom ethereum.blocks as blockwhereblock.number >= 15537394),tx_per_block as(selectblock_number,count(*) as txs_per_blockfrom ethereum.transactionswhereblock_number >= 15537394group by 1),block_tot_info as(selecttx_per_block.block_number as block_number,txs_per_block,minerfrom block_infoinner join tx_per_block on tx_per_block.block_number = block_info.block_number),mev_payments as(selectblock_time,tx_to as validator,sum(payment) as mev_sharefrom block_tot_infoinner join payment_info on (payment_info.block_number = block_tot_info.block_numberand tx_from = minerand tx_index = txs_per_block - 1