Query editor
WITH transaction_links AS (SELECT"from" as user_addr,evt_tx_hash,value/1e6 as amountFROM erc20_ethereum.evt_TransferWHERE contract_address = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48AND "to" = 0xeBa70Db956565C417b0a8b9E08477De9c9601DabUNION ALLSELECT"to" as user_addr,evt_tx_hash,-1*(value/1e6) as amountFROM erc20_ethereum.evt_TransferWHERE contract_address = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48AND "from" = 0xeBa70Db956565C417b0a8b9E08477De9c9601Dab)SELECTtr.user_addr as investor_address,SUM(tr.amount) as net_pledged_usdc,'<a href="https://etherscan.io/tx/0x' || lower(to_hex(tr.evt_tx_hash)) || '" target="_blank">txn hash</a>' as txn_hashFROM transaction_links trGROUP BY tr.user_addr, tr.evt_tx_hashHAVING SUM(tr.amount) > 0ORDER BY net_pledged_usdc DESCLIMIT 100