Query editor
WITHhours AS ( SELECT hour from unnest(sequence(timestamp '2024-01-01 00:00', date(NOW()), interval '1' hour)) as tbl(hour) ),lrt_details AS (SELECT token_address, symbol, category, blockchainFROM(VALUES(0x0d86883faf4ffd7aeb116390af37746f45b6f378, 'USD3', 'stable', 'ethereum'),(0xa0d69e286b938e21cbf7e51d71f6a4c8918f482f, 'eUSD', 'stable', 'ethereum'),-- (0x78da5799cf427fee11e9996982f4150ece7a99a7, 'rgUSD', 'stable', 'ethereum'),(0xacdf0dba4b9839b96221a8487e9ca660a48212be, 'hyUSD', 'stable', 'ethereum'),(0x2a8e1e676ec238d8a992307b495b45b3feaa5e86, 'OUSD', 'stable', 'ethereum')) AS temp (token_address, symbol, category, blockchain)),transfer AS (SELECTevt_block_time,contract_address,evt_tx_hash,valueFROM erc20_ethereum.evt_TransferGROUP BY 1,2,3,4),asset_flow AS (SELECTDATE_TRUNC('hour', evt_block_time) AS hour,contract_address,SUM(value / 1e18) AS amount,CAST(COUNT(value) AS DOUBLE) AS tx_countFROM transferGROUP BY 1,2), sup_eth AS (SELECTs.hour,contract_address,symbol,amount,tx_countFROM asset_flow sINNER JOIN lrt_details ld ON ld.token_address = s.contract_addressWHERE ld.blockchain = 'ethereum'),sup_eth_hour AS (SELECT hour,contract_address,symbol,SUM(amount) AS amount,SUM(tx_count) AS tx_countFROM (SELECT