Query editor
with data as (select 'Backed' as issuer, product, description,asset_type, underlying, last_price as price, balance as units, market_capfrom query_1833027 -- Backedunion allselect 'Mountain' as issuer, null as product, null as description, null as asset_type, null as underlying, null as price, null as units, outstanding as market_capfrom query_3050717 -- Mountainwhere period = current_dateunion allselect 'Mountain' as issuer, null as product, 'Mountain Protocol USD' as description,'Bonds' as asset_type, 'T-Bills' underlying, 1.0 as price, outstanding as units, outstanding as market_capfrom query_3254302 -- Mountain Polygon PoSwhere period = current_dateunion allselect 'Mountain' as issuer, null as product, 'Mountain Protocol USD' as description,'Bonds' as asset_type, 'T-Bills' underlying, 1.0 as price, outstanding as units, outstanding as market_capfrom query_3298548 -- Mountain Basewhere period = current_dateunion allselect 'Ondo' as issuer, product, description, asset_type, underlying, price, outstanding as units, market_capfrom query_1980700 -- Ondounion allselect 'Ondo' as issuer, 'USDY' as product, 'Ondo U.S. Dollar Yield' as description, 'Bonds' as asset_type, 'T-Bills' underlying, price, outstanding as units, market_capfrom query_3053455 -- Ondo USDYwhere period = current_dateunion allselect 'Swarm' as issuer, product, description, asset_type, underlying, price, outstanding as units, market_capfrom query_2039016 -- Swarmunion allselect 'Matrixdock' as issuer, 'STBT' as product, '' as description, 'Bonds' as asset_type, 'T-Bills' underlying,1.0 as price,totalSupply as units,totalSupply as market_capfrom query_2742941 -- Matrixdockwhere day = (select max(day) from query_2742941)union allselect 'OpenEden' as issuer, product, description, asset_type, underlying, price, outstanding as units, market_capfrom query_2414792union allselect issuer, product, description, asset_type, underlying, price, outstanding as units, market_capfrom query_2453275),group_by as (select issuer, count(*) as product_count, sum(market_cap) as market_capfrom datagroup by 1)select issuer, market_cap, market_cap / sum(market_cap) over () as market_share, product_count,case issuerwhen 'BlackRock' then '🔵'when 'Backed' then '🔵🟢🟣'when 'Mountain' then '🔵🟣⚪'when 'Ondo' then '🔵🟣'when 'Swarm' then '🟣'when 'Matrixdock' then '🔵'when 'OpenEden' then '🔵'when 'TrueFi' then '🔵'when 'Franklin Templeton' then '🟣'when 'Maple' then '🔵'when 'Hashnote' then '🔵'end as chains,