Query editor
-- Safe <> Gnosis Joint Treasury funds moved.---- SCOPE: strict parity with kpk-tx-count base query 8661705 (entity 'Safe<>Gnosis').-- wallets: ethereum 0x027e1cbf2c299cba5eb8a2584910d04f1a8aa403-- ethereum 0xd28b432f06cb64692379758b88b5fcdfc4f56922-- gnosis 0x0c6eeb232800fb86215438c4f7ae032b5463586c-- window: 2024-04-01 -> 2025-10-01 inclusive, i.e. exclusive bound 2025-11-01-- Closed mandate: the end bound is fixed, not dynamic.WITH wallets AS (SELECT *FROM (VALUES('ethereum', 0x027e1cbf2c299cba5eb8a2584910d04f1a8aa403, '027e_ethereum'),('ethereum', 0xd28b432f06cb64692379758b88b5fcdfc4f56922, 'd28b_ethereum'),('gnosis', 0x0c6eeb232800fb86215438c4f7ae032b5463586c, '0c6e_gnosis')) AS w(blockchain, wallet, wallet_name)),params AS (SELECTDATE '2024-04-01' AS start_month,DATE '2025-11-01' AS end_month,TIMESTAMP '2024-04-01 00:00:00 UTC' AS start_time,TIMESTAMP '2025-11-01 00:00:00 UTC' AS end_time),raw_transfers AS (SELECTt.blockchain,t.block_time,t.tx_hash,t.contract_address,t.symbol,t.amount,t.amount_usd,t."from",t."to"FROM tokens.transfers tCROSS JOIN params pWHERE t.blockchain = 'ethereum'AND t.block_month >= p.start_monthAND t.block_month < p.end_monthAND t.block_time >= p.start_timeAND t.block_time < p.end_timeAND (t."from" IN (0x027e1cbf2c299cba5eb8a2584910d04f1a8aa403,0xd28b432f06cb64692379758b88b5fcdfc4f56922)OR t."to" IN (0x027e1cbf2c299cba5eb8a2584910d04f1a8aa403,0xd28b432f06cb64692379758b88b5fcdfc4f56922))AND t.amount IS NOT NULLAND t.amount_usd IS NOT NULLAND t.amount > 0AND t.amount_usd > 0