Query editor
SELECT'BNB Chain' as chain,COUNT(distinct "from") AS walletsFROM bnb.transactionsWHERE CASEWHEN '{{BNB Chain}}' = 'Yes' THEN 1 = 1ELSE 1 = 0ENDGROUP BY 1UNION ALLSELECT'Ethereum' as chain,COUNT(distinct "from") AS walletsFROM ethereum.transactionsWHERE CASEWHEN '{{Ethereum}}' = 'Yes' THEN 1 = 1ELSE 1 = 0ENDGROUP BY 1UNION ALLSELECT'Gnosis' as chain,COUNT(distinct "from") AS walletsFROM gnosis.transactionsWHERE CASEWHEN '{{Gnosis Chain}}' = 'Yes' THEN 1 = 1ELSE 1 = 0ENDGROUP BY 1UNION ALLSELECT'Avalanche' as chain,COUNT(distinct "from") AS walletsFROM avalanche_c.transactionsWHERE CASEWHEN '{{Avalanche}}' = 'Yes' THEN 1 = 1ELSE 1 = 0ENDGROUP BY 1UNION ALLSELECT'Fantom' as chain,COUNT(distinct "from") AS walletsFROM fantom.transactionsWHERE CASEWHEN '{{Fantom}}' = 'Yes' THEN 1 = 1ELSE 1 = 0ENDGROUP BY 1UNION ALL