Flipside Teamnear 2+ app - mau
Updated 2024-10-18
999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
-- forked from near social - mau copy @ https://flipsidecrypto.xyz/edit/queries/9b0a8a81-fa22-412c-bdbd-48602c2b445d
with
users_activities_raw as (
select
date_trunc(day, block_timestamp) as block_timestamp,
tx_signer as user,
project_name
from near.core.fact_transactions
inner join (select address, project_name from near.core.dim_address_labels
where label_type not in ('token','cex')
and label_subtype not in ('token_contract', 'nf_token_contract')
and project_name not in ('kaikai', 'sweat'))
on address = tx_receiver
where tx_succeeded=true
and tx_signer not in (select distinct address from near.core.dim_address_labels)
-- and block_timestamp::date >= '{{starting_date}}'
group by 1,2,3),
twoplusapp_users as (
select user
from (
select user,
count(distinct project_name) as projects
from users_activities_raw
group by user)
where projects>1
group by 1
),
users_activities as (
select a.* from users_activities_raw a
join twoplusapp_users b on a.user=b.user
),
QueryRunArchived: QueryRun has been archived