Query editor
with report0 as(select *,avg(dau)over(order by sta_date ROWS BETWEEN 6 PRECEDING AND CURRENT ROW) as avg_daufrom(select *,row_number()over(partition by sta_date order by dau desc) as date_rankfrom dune.opensociallabs.bread_report)where date_rank=1),overview0 as (select sum(profile) as profile,sum(operations) as operations,sum(social_interations) as social_interations,max(avg_dau) as dau,max(points) as pointsfrom report0),overview1 as (select bread_profile as profile,bread_ops as operations,bread_social_interations as social_interations,bread_points as pointsfrom dune.opensociallabs.opensocial_overview)select overview0.dau,overview1.profile,overview1.operations,overview1.social_interations,overview1.pointsfrom overview0,overview1