Query editor
WITHbig_delegations AS (SELECT DISTINCTd.contract_address,d.delegate AS delegate_address,CASEWHEN d.newBalance > d.previousBalance THEN (d.newBalance - d.previousBalance) / 1e18ELSE (d.previousBalance - d.newBalance) / 1e18END AS delegated_amount,d.evt_block_time AS delegation_time,d.evt_tx_hash AS transaction_hashFROM compound_v2_ethereum.Comp_evt_DelegateVotesChanged dWHERECASEWHEN d.newBalance > d.previousBalance THEN (d.newBalance - d.previousBalance) > 1000 * 1e18ELSE (d.previousBalance - d.newBalance) > 1000 * 1e18END),DelegationsWithCaller AS (SELECTbd.delegate_address,bd.delegated_amount,bd.delegation_time,bd.transaction_hash,tx."from" AS caller_addressFROM big_delegations bdLEFT JOIN ethereum.transactions txON bd.transaction_hash = tx.hash)SELECT DISTINCTdwc.caller_address,dwc.delegate_address,dwc.delegated_amount,dwc.delegation_timeFROM DelegationsWithCaller dwcORDER BY dwc.delegation_time DESC;