Query editor
select (case when length(name) < 15 then length(name) else 15 end) as length_type,count(*) as domain_count,sum(cost/1e18) as total_register_ethfrom((select name, cast(baseCost as double) as cost fromarbid_arbitrum.ARBRegistrarControllerV2_evt_NameRegistered)union all(select name, cast(baseCost as double) as cost fromarbid_arbitrum.ARBRegistrarControllerV3_evt_NameRegistered)union all(select name, cast(baseCost as double) as cost fromarbid_arbitrum.ARBRegistrarControllerV4_evt_NameRegistered)union all(select name, cast(baseCost as double) as cost fromarbid_arbitrum.ARBRegistrarControllerV5_evt_NameRegistered)union all(select name, cast(baseCost as double) as cost fromarbid_arbitrum.ARBRegistrarControllerV6_evt_NameRegistered))group by 1order by 1