Query editor
WITH honey_earners AS (SELECT DISTINCTr.to_ownerFROM hivemapper_solana.rewards rJOIN solana_utils.latest_balances chb ON r.to_owner = chb.token_balance_ownerWHERE r.reward_type IN('map coverage', 'QA (AI Trainer)')AND r.block_time >= CAST('{{start_date}}' AS timestamp)AND r.block_time <= CAST('{{end_date}}' AS timestamp)AND chb.token_mint_address = '4vMsoUT2BWatFweudnQM1xedRLfJgJ7hswhcpz4xgBTy'GROUP BY r.to_ownerHAVING SUM(round(r.amount / pow(10, 9), 4)) > 10)SELECThe.to_owner AS original_honey_earner,t.to_owner AS recipient_wallet,t.token_mint_address,t.amount,t.block_time,t.tx_id,COUNT(*) OVER (PARTITION BY he.to_owner) AS total_transfers_made,COUNT(DISTINCT t.to_owner) OVER (PARTITION BY he.to_owner) AS unique_recipientsFROM honey_earners heJOIN tokens_solana.transfers t ON he.to_owner = t.from_ownerWHERE t.token_mint_address = '4vMsoUT2BWatFweudnQM1xedRLfJgJ7hswhcpz4xgBTy' -- honey tokenAND t.block_time >= CAST('{{start_date}}' AS timestamp)AND t.block_time <= CAST('{{end_date}}' AS timestamp)ORDER BY he.to_owner, t.block_time DESC