Query editor
WITHt as (SELECTblock_time,block_date,tx_hash,amount,symbol,amount_usd,"from",to,CASEWHEN "from" = 0xc0E02AA55d10e38855e13B64A8E1387A04681A00 THEN 'OUT'WHEN to = 0xc0E02AA55d10e38855e13B64A8E1387A04681A00 THEN 'IN'ELSE NULLEND as flowFROMtokens_arbitrum.transfersWHEREblock_time >= (current_date - interval '7' day)AND symbol = 'ETH'AND ("from" = 0xc0E02AA55d10e38855e13B64A8E1387A04681A00OR to = 0xc0E02AA55d10e38855e13B64A8E1387A04681A00)AND amount_usd <= 50 /* excluding token withdrawls */)SELECTblock_date,flow,count(tx_hash) as tx_count,sum(amount) as total_amount,sum(amount_usd) as total_amount_usd,avg(amount_usd) as avg_amount_usdFROMtGROUP BY 1, 2ORDER BY 2 ASC, 1 DESC