mz0111sol game 5
Updated 2023-02-10Copy Reference Fork
99
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
›
⌄
with tab1 as (
select
SIGNERS[0] ,
Min(date_trunc('day', block_timestamp)) as min_date,
Max(date_trunc('day', block_timestamp)) as max_date,
count(*) as transactions
from solana.core.fact_events
where PROGRAM_ID = 'STkwf3sbMapjy7KV3hgrJtcVvY4SvRxWQ8pj4Enw1i5'
group by 1
) ,
Au AS
(select
'Aurory' as name,
sum(datediff('day', min_date, max_date))/ sum(transactions) as Time_Between_Transactions
from tab1 ),
tab2 as (
select
SIGNERS[0] ,
Min(date_trunc('day', block_timestamp)) as min_date,
Max(date_trunc('day', block_timestamp)) as max_date,
count(*) as transactions
from solana.core.fact_events
where PROGRAM_ID = 'ATLocKpzDbTokxgvnLew3d7drZkEzLzDpzwgrgWKDbmc'
group by 1
) ,
star AS
(select
'Star Atlas' as name,
sum(datediff('day', min_date, max_date))/ sum(transactions) as Time_Between_Transactions
from tab2 ),
tab3 as (
select
Run a query to Download Data