Query editor
/* select sum(cost) from spaceid."BNBRegistrarControllerV3_evt_NameRenewed" */SELECTCAST(renew_time AS DATE),SUM(renew_bnb) AS renew_revenue_BNBFROM(SELECTname,evt_block_time AS renew_time,cost / CAST(1e18 AS DOUBLE) AS renew_bnb,evt_tx_hash AS tx_hashFROMspaceid_bnb.BNBRegistrarControllerV3_evt_NameRenewedUNION ALLSELECTname,evt_block_time AS renew_time,cost / CAST(1e18 AS DOUBLE) AS renew_bnb,evt_tx_hash AS tx_hashFROMspaceid_bnb.BNBRegistrarControllerV4_evt_NameRenewedUNION ALLSELECTname,evt_block_time AS renew_time,cost / CAST(1e18 AS DOUBLE) AS renew_bnb,evt_tx_hash AS tx_hashFROMspaceid_bnb.BNBRegistrarControllerV5_evt_NameRenewedUNION ALLSELECTname,evt_block_time AS renew_time,cost / CAST(1e18 AS DOUBLE) AS renew_bnb,evt_tx_hash AS tx_hashFROMspaceid_bnb.BNBRegistrarControllerV6_evt_NameRenewedUNION ALLSELECTname,evt_block_time AS renew_time,cost / CAST(1e18 AS DOUBLE) AS renew_bnb,evt_tx_hash AS tx_hashFROMspaceid_bnb.BNBRegistrarControllerV7_evt_NameRenewedUNION ALLSELECTname,evt_block_time AS renew_time,cost / CAST(1e18 AS DOUBLE) AS renew_bnb,evt_tx_hash AS tx_hashFROMspaceid_bnb.BNBRegistrarControllerV8_evt_NameRenewedUNION ALL