Query editor
with report0 as (select *,row_number()over(partition by sta_date order by dau desc) as date_rankfrom dune.opensociallabs.bread_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 report0where date(date_add('hour', 8, sta_date))>=date('2024-09-19')and date_rank=1)select *from social0