Query editor
with ALL as ( SELECT block_date as DateTime,Count(*) as Number_of_Tx , sum(fee) as BTC_FeeFROM bitcoin.transactionsWHERE 1=1 and block_height > 779831GROUP BY 1 ),BRC20 as (SELECT block_date as DateTime,Count(*) as Number_of_Inscription , sum(fee) as BRC20_FeeFROM bitcoin.transactionsWHERE block_height > 779831AND cast(hex AS VARCHAR) LIKE '%0063036f726401%'AND cast(hex AS VARCHAR) LIKE '%6272632d3230%'GROUP BY 1),Ordinals as (SELECT block_date as DateTime,Count(*) as Number_of_Ordinals , sum(fee) as Ordi_FeeFROM bitcoin.transactionsWHERE block_height > 779831AND cast(hex AS VARCHAR) LIKE '%0063036f726401%'GROUP BY 1)SELECT ALL.DateTime as Day , (Number_of_Tx - Number_of_Ordinals) as non_Odrdinal_Tx , Number_of_Inscription as BRC20_Tx, (Number_of_Ordinals - Number_of_Inscription) as non_BRC20_Ordi_Tx,(BTC_Fee - Ordi_Fee) as non_Odrdinal_Fee , BRC20_Fee , (Ordi_Fee - BRC20_Fee) as non_BRC20_Ordi_FeeFROM ALLLEFT JOIN BRC20 On BRC20.DateTime = ALL.DateTimeLEFT JOIN Ordinals On Ordinals.DateTime = ALL.DateTime