Query editor
withhourly_avg_tx_cnt_7d as (selectcount(hash) / (7 * 24) as hourly_avg_tx_7dfrom(select distincthashfrom{{chain}}.transactionswhereblock_time > (current_timestamp - interval '7' day)and to = {{token contract}}unionselect distinctevt_tx_hash as hashfromerc20_{{chain}}.evt_Transferwhereevt_block_time > (current_timestamp - interval '7' day)and contract_address = {{token contract}}) temp),hourly_avg_tx_cnt_72h as (selectcount(hash) / (3 * 24) as hourly_avg_tx_72hfrom(select distincthashfrom{{chain}}.transactionswhereblock_time > (current_timestamp - interval '3' day)and to = {{token contract}}unionselect distinctevt_tx_hash as hashfromerc20_{{chain}}.evt_Transferwhereevt_block_time > (current_timestamp - interval '3' day)and contract_address = {{token contract}}) temp),hourly_avg_tx_cnt_1d as (selectcount(hash) / 24 as hourly_avg_tx_24hfrom(select distincthashfrom{{chain}}.transactionswhereblock_time > (current_timestamp - interval '24' hour)and to = {{token contract}}unionselect distinctevt_tx_hash as hash