StangFAST02 - token inflow
    Updated 2023-05-20
    -- forked from 02 - overviews @ https://flipsidecrypto.xyz/edit/queries/d72b3dce-5b87-463d-8d40-71de3ea7842b

    -- forked from 02 - inflow and outflow @ https://flipsidecrypto.xyz/edit/queries/3c216349-5775-4a2f-8a65-a9ca0944f51b

    -- forked from 02 - activity @ https://flipsidecrypto.xyz/edit/queries/d1890764-0da2-400e-af2e-228cfa687f8c

    -- forked from 02 - number @ https://flipsidecrypto.xyz/edit/queries/6f8d6af5-8ea3-4819-a354-abbe50246ced

    -- forked from 01 - CEX to DEX outflow @ https://flipsidecrypto.xyz/edit/queries/fdc02176-5bc7-496e-9316-ad5821921bd4

    --- outflow use origin_to_address
    --- inflow user origin_from_address

    with
    eth_price AS
    (
    SELECT
    date_trunc( 'day' , a.hour ) AS day
    , avg( a.price ) AS price_usd
    FROM
    ethereum.core.fact_hourly_token_prices a
    WHERE
    a.symbol = 'WETH'
    GROUP BY
    1
    ORDER BY
    1
    )

    ,

    --- in_flow ---
    from_dex AS
    (
    SELECT
    date_trunc( 'month' , a.block_timestamp ) AS date
    Run a query to Download Data