Query editor
-- ═══════════════════════════════════════════════════════════════════════════-- ICP composition by sub-segment-- ═══════════════════════════════════════════════════════════════════════════-- Splits the ICP cohort into three behavioural sub-segments based on primary_signal.-- Source: dune.orhard_girl0.result_04_b_icp_wallets (materialized view)-- ═══════════════════════════════════════════════════════════════════════════WITH icp AS (SELECTprimary_signal,COUNT(*) AS wallets,SUM(current_balance_usd) AS tvl_usdFROM dune.orhard_girl0.result_04_b_icp_walletsGROUP BY 1)SELECT1 AS sort_order,'Aggregator users (1inch, Paraswap, CowSwap, etc.)' AS sub_segment,wallets,tvl_usd,'Approval comfort already established' AS noteFROM icp WHERE primary_signal = '1_aggregator'UNION ALLSELECT2,'Direct DEX users (Uniswap, Curve, Balancer)',wallets,tvl_usd,'Active swappers, smaller cohort'FROM icp WHERE primary_signal = '2_direct_dex'UNION ALLSELECT3,'Yield-token holders (Aave, Compound, Pendle, Maker, Ethena)',wallets,tvl_usd,'Yield-aware, yet hold idle balances alongside'FROM icp WHERE primary_signal = '3_yield_token_only'ORDER BY sort_order;