Query editor
WITHBLOCK_BTC as (SELECTheight,datefrombitcoin.blocksWHEREdate > cast('2014-12-31' as timestamp)),TX_BTC as (SELECTblock_height as block_number,count(id) as tx_countFROMbitcoin.transactionsWHEREblock_date > cast('2022-12-31' as timestamp)GROUP byblock_height)SELECTSUM(tx.tx_count) as daily_total_tx,b.date as dateFROMTX_BTC as txjoin BLOCK_BTC as b on tx.block_number = b.heightGROUP byb.dateorder byb.date