Query editor
WITH get_included_blocks AS (SELECT DISTINCTt.block_number AS included_block_number,block_time,f.*FROM dune.flashbots.dataset_protect_transactions fJOIN ethereum.transactions tON FROM_HEX(f.tx_hash) = t.hashWHERE block_time >= DATE('2022-02-25'))SELECTCASEWHEN included_block_number - created_at_block_number <= 6 THEN '<= 6'ELSE '> 6'END AS blocks_waited_group,COUNT(DISTINCT tx_hash) AS tx_ctFROM get_included_blocksWHERE included_block_number - created_at_block_number >= 0GROUP BY 1ORDER BY 1;