WITH total_stats AS (
SELECT
count(distinct from_address) AS active_users,
count(distinct tx_hash) AS transactions
FROM
kaia.core.fact_transactions
WHERE tx_succeeded = 'True'
)
SELECT
Active_users AS Total_Users,
Transactions AS Total_Txns
FROM total_stats