Query editor
WITH original_transactions AS (SELECT"to" AS recipient_address,first_transfer_time,total_sentFROM query_4773810WHEREtotal_sent >= 1000)SELECTt."from" AS address,SUM(t.amount) AS total_sent,MAX(ot.total_sent) AS total_received,MAX(ot.total_sent) - SUM(t.amount) AS difference,SUM(MAX(ot.total_sent) - SUM(t.amount)) OVER (ORDER BY t."from") AS cumulative_differenceFROM tokens_arbitrum.transfers AS tJOIN original_transactions AS otON t."from" = ot.recipient_addressWHEREt.block_time >= ot.first_transfer_timeAND t."from" <> 0x3ef3d8ba38ebe18db133cec108f4d14ce00dd9aeAND t."from" <> 0x3350bef226f7bdca874c5561320ab7ef9dc89e70AND t."from" <> 0x435046800fb9149ee65159721a92cb7d50a7534bAND t.contract_address = 0x912CE59144191C1204E64559FE8253a0e49E6548GROUP BYt."from"HAVING(MAX(ot.total_sent) - SUM(t.amount)) > 0 /* Ensure it happens after the original FT_time */