Query editor
SELECTtr.user_addr as investor_address,SUM(tr.amount) as net_pledged_usdc,CONCAT('<a href="https://etherscan.io/tx/', CAST(tr.evt_tx_hash AS VARCHAR), '" target="_blank">txn hash</a>') as txn_hashFROM (-- IncomingSELECT "from" as user_addr, value/1e6 as amount, evt_tx_hash FROM erc20_ethereum.evt_TransferWHERE contract_address = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48AND "to" = 0xD90537959DFB699d9CA4898082b70FB238C3dC1fUNION ALL-- Outgoing (Refunds)SELECT "to" as user_addr, -1*(value/1e6) as amount, evt_tx_hash FROM erc20_ethereum.evt_TransferWHERE contract_address = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48AND "from" = 0xD90537959DFB699d9CA4898082b70FB238C3dC1f) trGROUP BY 1, 3HAVING SUM(tr.amount) > 0ORDER BY 2 DESCLIMIT 100