Query editor
with dau0 as (select *,row_number()over(partition by sta_date order by dau desc) as date_rankfrom dune.opensociallabs.somon_report),social0 as (select sta_date,social_interations,social_posts,social_comments,social_likes,avg(social_interations)over(order by sta_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW) as social_interations_MA7from dau0where date(date_add('hour', 8, sta_date))>=date('2024-06-19')and date_rank=1)select *from social0