Query editor
withlast_1_years as (selectdate_trunc('day', "date") as date_,sum(total_fees) as daily_fees,sum(transaction_count) as daily_txns,sum(mint_reward) as daily_mint_rewardfrombitcoin.blockswhere"date" >= current_date - interval '90' day-- and date_trunc('week', "date") <> date_trunc('week', current_date)group by1),last_4_years as (selectdate_trunc('month', "date") as month_,sum(total_fees) as monthly_fees,sum(transaction_count) as monthly_txns,sum(mint_reward) as monthly_mint_rewardfrombitcoin.blocks-- where-- "date" >= current_date - interval '4' yeargroup by1)selectlast_1_years.*,last_4_years.*fromlast_1_yearsjoin last_4_years on true