goanji6455The largest TOKE holders present in both time periods
    Updated 2022-06-22
    with a as (select USER_ADDRESS, max(BALANCE) as "Wallet balance" from flipside_prod_db.ethereum.erc20_balances
    where CONTRACT_ADDRESS = lower('0x2e9d63788249371f1DFC918a52f8d799F4a38C94')
    and balance_date = CURRENT_DATE
    group by 1 order by "Wallet balance" DESC limit 10),
    b as (
    select USER_ADDRESS, max(BALANCE) as "Wallet balance" from flipside_prod_db.ethereum.erc20_balances
    where CONTRACT_ADDRESS = lower('0x2e9d63788249371f1DFC918a52f8d799F4a38C94')
    and balance_date between '2022-01-01'and'2022-01-31'
    group by 1 order by "Wallet balance" DESC limit 10
    )

    select USER_ADDRESS, max(balance) as "Wallet balance" from flipside_prod_db.ethereum.erc20_balances
    where USER_ADDRESS in (select USER_ADDRESS from a)
    and USER_ADDRESS in (select USER_ADDRESS from b)
    group by 1
    Run a query to Download Data