Query editor
-- Decrypt Information Exchange — wallets by product combination (aggregate only)WITH w AS (SELECT wallet, array_join(array_sort(array_distinct(array_agg(product))), ' + ') AS products, count(DISTINCT product) AS nFROM query_9176158WHERE product IN ('Swaps', 'Private Balance', 'Perps')GROUP BY 1)SELECT products, n AS product_count, count(*) AS walletsFROM wGROUP BY 1, 2ORDER BY product_count DESC, wallets DESC