Query editor
selectcount(distinct (day,project_name,t_90d_address)) as uv,count(*) as txfrom(select t1.*,t2.day,t2."from",COALESCE(t2.num,0) as num,t_24h_address,t_24h_txnum,t_7d_address,t_7d_txnum,t_30d_address,t_30d_txnum,t_90d_address,t_90d_txnum from(select * from query_2345297) t1join(select *,1 as num, date_trunc('day',block_time) as day,case when block_time>=date_trunc('hour', now())- interval '24' hour then "from" end as t_24h_address,case when block_time>=date_trunc('hour', now())- interval '24' hour then 1 else 0 end as t_24h_txnum,case when block_time>=date_trunc('hour', now())- interval '168' hour then "from" end as t_7d_address,case when block_time>=date_trunc('hour', now())- interval '168' hour then 1 else 0 end as t_7d_txnum,case when block_time>=date_trunc('hour', now())- interval '720' hour then "from" end as t_30d_address,case when block_time>=date_trunc('hour', now())- interval '720' hour then 1 else 0 end as t_30d_txnum,case when block_time>=date_trunc('hour', now())- interval '2160' hour then "from" end as t_90d_address,case when block_time>=date_trunc('hour', now())- interval '2160' hour then 1 else 0 end as t_90d_txnumfrom polygon.transactions where block_time>=date_trunc('day', now())- interval '2160' hour and success = Trueand substring(data from 1 for 4) not in (0x4ecac405,0xbde0a2f7)) t2on t1.contract_address=t2.to) t-- select * from bsc."transactions" where substring(data from 1 for 10) not in (0x41c20811,0xb00b52f1,0x0a5936f1) limit 100