Query editor
select (case when LENGTH(name) < 10 then CONCAT(CAST(LENGTH(name) AS VARCHAR), '') else '10+' end) as length_type,count(*) as domain_count,sum(cost/1e18) as total_register_BNBfrom(select name, cost fromspaceid_bnb.BNBRegistrarControllerV3_evt_NameRegisteredunion allselect name, cost fromspaceid_bnb.BNBRegistrarControllerV4_evt_NameRegisteredunion allselect name, cost fromspaceid_bnb.BNBRegistrarControllerV5_evt_NameRegisteredunion allselect name, cost fromspaceid_bnb.BNBRegistrarControllerV6_evt_NameRegisteredunion allselect name, cost fromspaceid_bnb.BNBRegistrarControllerV7_evt_NameRegisteredunion allselect name, cost fromspaceid_bnb.BNBRegistrarControllerV8_evt_NameRegisteredunion allselect name, cost fromspaceid_bnb.BNBRegistrarControllerV9_evt_NameRegisteredunion allselect name, cost fromspaceid_bnb.BNBRegistrarControllerV10_evt_NameRegisteredunion allselect name, cost fromspaceid_bnb.BNBRegistrarControllerV11_evt_NameRegisteredunion allselect name, cost fromspaceid_bnb.RegistrarController_evt_NameRegistered)agroup by 1order by 1