banterlyticsUntitled Query
    Updated 2022-11-25
    -- select --USER_ADDRESS, CURRENT_BAL, USD_VALUE_NOW
    -- sum(current_bal)
    -- from ethereum.core.ez_current_balances
    -- where CONTRACT_ADDRESS = lower('0x94e496474F1725f1c1824cB5BDb92d7691A4F03a')
    -- --order by 2 DESC
    -- --, last_activity_block_timestamp::date


    select * from ethereum.core.fact_token_transfers
    where TX_HASH = lower('0x7214713075c5de2e68badb46c91a8418fdf914406fea466683f231c47ae85d52')
    and block_timestamp::date = '2022-08-23'::date

    select * from ethereum.core.fact_token_transfers
    where contract_address = lower('0x94e496474F1725f1c1824cB5BDb92d7691A4F03a')
    and FROM_ADDRESS = lower('0x0000000000000000000000000000000000000000')
    and block_timestamp::date = '2022-08-23'

    select * from
    (select sum(raw_amount/pow(10,18)) as claimed from
    ethereum.core.fact_token_transfers
    where contract_address = lower('0x94e496474F1725f1c1824cB5BDb92d7691A4F03a')
    and FROM_ADDRESS = lower('0x0000000000000000000000000000000000000000')

    LEFT JOIN
    select sum(raw_amount/pow(10,18)) as burnt from
    ethereum.core.fact_token_transfers
    where contract_address = lower('0x94e496474F1725f1c1824cB5BDb92d7691A4F03a')
    and TO_ADDRESS = lower('0x0000000000000000000000000000000000000000')) a


    with sent_tokens as
    (select block_timestamp::date as day1,
    sum(raw_amount/pow(10,18)) as xMETRIC
    Run a query to Download Data