Query editor
WITH new_transfers AS (SELECTbuyer,COUNT(buyer) AS wallet,MIN(evt_block_time) AS timeFROM gameofxen_ethereum.XenGame_evt_BuyAndDistributeWHEREcontract_address = 0x6622f2617dab4ae4ba526f053c1c3fe9ea3436dbGROUP BYbuyer)SELECTDATE_TRUNC('day', time) AS Day,COUNT(wallet) AS todays_user,SUM(COUNT(wallet)) OVER (ORDER BY DATE_TRUNC('day', time)) + 93 AS Cumulative_Total_Users /* Add 93 from previous contract */FROM new_transfersGROUP BYDATE_TRUNC('day', time)ORDER BYDATE_TRUNC('day', time) DESC