Query editor
WITH StakeActions AS (SELECTwallet,amount_staked,lockup_period_monthsFROM query_3983094),FilteredStakeActions AS (SELECTwallet,amount_stakedFROM StakeActionsWHERE lockup_period_months = 12),StakeGroups AS (SELECTCASEWHEN amount_staked < 1000THEN '<1000 tokens'WHEN amount_staked >= 1000 AND amount_staked < 5000THEN '1000-4999 tokens'WHEN amount_staked >= 5000 AND amount_staked < 10000THEN '5000-9999 tokens'WHEN amount_staked >= 10000THEN '10000+ tokens'END AS stake_groupFROM FilteredStakeActions)SELECTstake_group,COUNT(*) AS Wallets,COUNT(*) * 100.0 / (SUM(COUNT(*)) OVER () * 1.0) AS shareFROM StakeGroupsGROUP BYstake_groupORDER BYCOUNT(*) DESC