Query editor
WITH user_base AS (SELECTto_owner,SUM(round(amount / pow(10, 9), 4)) AS honey_rewarded_totalFROM hivemapper_solana.rewardsWHERE reward_type IN('map coverage', 'QA (AI Trainer)')AND block_time >= TIMESTAMP '2025-01-01 00:00:00'AND block_time < TIMESTAMP '2025-04-01 00:00:00'GROUP BY to_ownerHAVING SUM(round(amount / pow(10, 9), 4)) > 10),user_swaps AS (SELECT DISTINCT trader_idFROM dex_solana.tradesWHERE token_sold_mint_address = '4vMsoUT2BWatFweudnQM1xedRLfJgJ7hswhcpz4xgBTy'AND block_time >= TIMESTAMP '2025-01-01 00:00:00'AND block_time < TIMESTAMP '2025-04-01 00:00:00')SELECTCOUNT(DISTINCT ub.to_owner) AS total_eligible_wallets,COUNT(DISTINCT us.trader_id) AS wallets_that_swapped,ROUND(100.0 * COUNT(DISTINCT us.trader_id) / COUNT(DISTINCT ub.to_owner), 2) AS participation_rate_pctFROM user_base ubLEFT JOIN user_swaps us ON ub.to_owner = us.trader_id;