Query editor
WITHdataset AS (SELECT*FROM dune.titania_research.result_just_in_time_liquidity_in_the_public_and_private_mempool_finalWHERE execution = 'swap'AND (mempool_type = 'Public' OR mempool_type = 'Private')AND date_trunc('hour', evt_block_time) NOT IN (SELECT missing_or_degraded_timestampFROM dune.alphaist18.result_fffff_2)),counts AS (SELECTmempool_type,COUNT(*) AS jit_tx_countFROM datasetGROUP BY mempool_type),block_counts AS (SELECTCOUNT(*) AS block_countFROM ethereum.blocksWHERE time >= CAST('2024-01-01' AS TIMESTAMP)AND time <= CAST('2025-10-01' AS TIMESTAMP))SELECTc.mempool_type,CAST(c.jit_tx_count AS DOUBLE) / NULLIF(b.block_count, 0) * 100 AS jit_ratio_in_block,CAST(c.jit_tx_count AS DOUBLE) AS jit_tx_countFROM counts cCROSS JOIN block_counts bORDER BY jit_ratio_in_block DESC;