boomer77proposer gov
Updated 2021-10-13
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
›
⌄
with prop as (select proposer, count(distinct proposal_id) as proposal_submitted
from terra.gov_submit_proposal
group by 1
order by 2 desc),
holding as (select address, sum(balance) as LUNA_holding
from terra.daily_balances
where currency = 'LUNA' and address in (select proposer from prop) and date = CURRENT_DATE
group by 1)
select a.proposer, a.proposal_submitted, b.LUNA_holding, CASE
when b.LUNA_holding > 10000 then 'WHALE'
else 'RETAIL' end as WHALE_RETAIL
from prop a
join holding b on a.proposer = b.address
order by 2 desc
Run a query to Download Data