KaskoazulExample Top 100 wallets
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
WITH AllLunaWalletsSumInUSD AS
(
select TRUNCATE((balance_usd),0) as AllLunaWallets
from terra.daily_balances
where currency='LUNA'
and date>current_date-3
and date<current_date-1
),
Top100LunaWalletsSumInUSD AS
(
select TRUNCATE((balance_usd),0) as top100
from terra.daily_balances
where currency='LUNA'
and date>current_date-3
and date<current_date-1
order by balance_usd desc
limit 100
)
select sum(top100), 'Top 100 Luna Wallets'
from Top100LunaWalletsSumInUSD
UNION
select sum(AllLunaWallets), 'All Luna Wallets'
from AllLunaWalletsSumInUSD