Query editor
-- XMAQUINA / DEUS dashboard chart query-- Generated by Codex on 2026-05-20.-- Chain: Base.WITH concentration AS (SELECT * FROM (VALUES('Rank 1-11', 1, 11, 11, 47731347.0, 2404989.93),('Rank 12-50', 12, 50, 39, 46346430.0, 2508962.575),('Rank 51-221', 51, 221, 171, 37968756.0, 1830762.435)) AS t(bucket, rank_start, rank_end, wallet_count, expected_deus, payment_usdc)), totals AS (SELECT SUM(expected_deus) AS total_deus, SUM(payment_usdc) AS total_usdc FROM concentration)SELECTc.bucket,c.rank_start,c.rank_end,c.wallet_count,c.expected_deus,c.payment_usdc,c.expected_deus / t.total_deus AS share_of_watchlist_deus,c.payment_usdc / t.total_usdc AS share_of_watchlist_usdcFROM concentration cCROSS JOIN totals tORDER BY c.rank_start;