Query editor
selectavg(gas_used) as average_gas,max(gas_used) as max_gas,min(gas_used) as min_gas,count(*) filter (where gas_used > 300000) as tx_above_300000,count(*) as all_txsfrom polygon.transactionswhere hash IN (select evt_tx_hashfrom erc20_polygon.evt_Transferwhere contract_address = 0x0c1EBBb61374dA1a8C57cB6681bF27178360d36Fand "from" = 0x0c1EBBb61374dA1a8C57cB6681bF27178360d36Fand "to" = 0xE0B52e49357Fd4DAf2c15e02058DCE6BC0057db4and cast(value as double) > 0)and block_time >= NOW() - interval '{{interval_day}}' daylimit 20