Query editor
with profile0 as (selectprofileId,handle,evt_block_number,evt_index,evt_block_time,"timestamp",date(from_unixtime("timestamp", 8, 0)) as block_ddfrom test123_base.OspRouterImmutable_evt_ProfileCreatedwhere date(from_unixtime("timestamp", 8, 0))>=date('2024-06-19')),profile1 as (select block_dd,count(distinct profileId) as profile_countfrom profile0 as agroup by block_dd)select block_dd,profile_count,MA7,sum_profile_count,avg(sum_profile_count)over(order by block_dd ROWS BETWEEN 6 PRECEDING AND CURRENT ROW) as sum_MA7from(select block_dd,profile_count,sum(profile_count)over(order by block_dd asc) as sum_profile_count,avg(profile_count)over(order by block_dd ROWS BETWEEN 6 PRECEDING AND CURRENT ROW) as MA7from profile1);