Query editor
with first_pass as((select distinct token_bought_address as token_traded,min(block_time) as first_tradefrom dex.tradeswhere 1=1and project = 'uniswap'group by 1)UNION ALL(select distinct token_sold_address as token_traded,min(block_time) as first_tradefrom dex.tradeswhere 1=1and project = 'uniswap'group by 1))(select date_trunc('month', max(first_trade)) as time,count(distinct token_traded) as tokens_tradedfrom first_pass)UNION ALL(select date_trunc('month', max(first_trade)) as time,count(distinct token_traded) as tokens_tradedfrom first_passwhere 1=1and first_trade <= now() - interval '365' day)UNION ALL(select date_trunc('month', max(first_trade)) as time,count(distinct token_traded) as tokens_tradedfrom first_passwhere 1=1and first_trade <= now() - interval '730' day)UNION ALL(select date_trunc('month', max(first_trade)) as time,count(distinct token_traded) as tokens_tradedfrom first_passwhere 1=1and first_trade <= now() - interval '1095' day)