Query editor
WITHprocessed_withdrawals as (SELECTevt_block_time as block_time,date_trunc('day', evt_block_time) as day,date_trunc('minute', evt_block_time) as minute,et.value/1e18 as ezeth_amount,er."from" as withdrawer,evt_tx_hash as tx_hashFROMerc20_ethereum.evt_transfer etINNER JOINethereum.transactions erON et.evt_block_number = er.block_numberAND et.evt_tx_hash = er.hashWHERE evt_block_time >= DATE '2024-06-01'AND block_time >= DATE '2024-06-01'AND et."from" = 0x5efc9D10E42FB517456f4ac41EB5e2eBe42C8918AND et.to = 0x0000000000000000000000000000000000000000AND et.contract_address = 0xbf5495Efe5DB9ce00f80364C8B423567e58d2110)SELECTpw.day,SUM(ezeth_amount) as ezeth_amount,SUM(ezeth_amount * COALESCE(p.price, ora.median_usd_rate, dr.median_usd_rate)) as usd_amount,COUNT(*) withdrawals,COUNT(DISTINCT(withdrawer)) as num_withdrawersFROMprocessed_withdrawals pwLEFT JOINprices.usd pON pw.minute = p.minuteAND p.contract_address = 0xbf5495Efe5DB9ce00f80364C8B423567e58d2110AND p.blockchain = 'ethereum'LEFT JOINquery_3880941 oraON pw.day = ora.dayAND ora.token_address = 0xbf5495Efe5DB9ce00f80364C8B423567e58d2110AND ora.blockchain = 'ethereum'LEFT JOINquery_3856076 drON pw.day = dr.dayAND dr.token_address = 0xbf5495Efe5DB9ce00f80364C8B423567e58d2110AND dr.blockchain = 'ethereum'GROUP BY 1