Query editor
selectdate_trunc('day', block_time) as dia,sum(case when token_bought_address = 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 then amount_usd end) as compras_usd,sum(case when token_sold_address = 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 then amount_usd end) as vendas_usd,count(case when token_bought_address = 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984and amount_usd > 1e5 then 1 end) as compras_acima_100kfrom dex.tradeswhere blockchain = 'ethereum'and (token_bought_address = 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984or token_sold_address = 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984)and block_time > now() - interval '90' dayand block_time < current_dategroup by 1order by 1