datavortexTop games project by new users
Updated 2025-01-29
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
›
⌄
WITH kaia_new_users AS (
SELECT DISTINCT from_address, MIN(DATE_TRUNC('month', block_timestamp)) AS first_tx_month
FROM Kaia.core.fact_transactions
GROUP BY from_address
HAVING MIN(DATE_TRUNC('month', block_timestamp)) >= DATE_TRUNC('month', CURRENT_DATE) - INTERVAL '6 months'
),
game_usage AS (
SELECT
t.from_address,
d.project_name,
DATE_TRUNC('month', t.block_timestamp) AS usage_month
FROM Kaia.core.fact_transactions t
JOIN Kaia.core.dim_labels d ON t.to_address = d.address
WHERE d.label_type = 'games'
AND t.from_address IN (SELECT from_address FROM kaia_new_users)
)
SELECT
u.project_name AS "Game Project",
COUNT(DISTINCT u.from_address) AS "New Users"
FROM game_usage u
GROUP BY u.project_name
ORDER BY COUNT(DISTINCT u.from_address) DESC
LIMIT 5;
QueryRunArchived: QueryRun has been archived