Query editor
with base as (select-- 'Metric' as metric,count(distinct wallet) as active_wallets,sum(claim_cnt) as claim_wallets,count(distinct case when swaps>0 then wallet end) as swap_wallets,count(distinct case when add_liq>0 then wallet end) as add_liq_wallets,count(distinct case when remove_liq>0 then wallet end) as remove_liq_wallets,count(distinct case when stake_liq>0 then wallet end) as stake_liq_wallets,count(distinct case when emission>0 then wallet end) as emission_wallets,count(distinct case when locks_cnt>0 then wallet end) as locks_wallets,count(distinct case when burn_cnt>0 then wallet end) as burn_wallets,sum(claim_amt) as total_claims,sum(swaps) as swaps_cnt,sum(add_liq) as add_liq_cnt,sum(remove_liq) as remove_liq_cnt,sum(stake_liq) as stake_liq_cnt,sum(emission) as emission_claim_cnt,sum(locks_cnt) as locks_cnt,sum(locks) as total_lock_amount,sum(burn_cnt) as burn_cnt,sum(burns) as total_burn_amtfrom"query_6586591"-- group by 1)SELECTmetric,valueFROM baseCROSS JOIN UNNEST(MAP(ARRAY['#Wallets','#Wallets Claimed sNova','#Wallets That Swapped','#Wallets Added Liquidity','#Wallets Removed Liquidity','#Wallets Staked Liquidity','#Wallets That Claimed Emission','#Wallets that Locked sNova(Singularity)','#Wallets that Locked sNova(smNFT)'],ARRAY[active_wallets,claim_wallets,swap_wallets,add_liq_wallets,remove_liq_wallets,stake_liq_wallets,emission_wallets,locks_wallets,burn_wallets])) AS t(metric, value)