Updated 2023-08-06
    -- forked from 01 - active days copy @ https://flipsidecrypto.xyz/edit/queries/694db7e7-0602-4dea-b9ca-b3332974a1a3

    -- forked from 01 - active days @ https://flipsidecrypto.xyz/edit/queries/76363cac-9e4b-4b30-9300-194b55c98afe

    -- forked from 01 - swap overview - big number @ https://flipsidecrypto.xyz/edit/queries/3727bbc1-c95b-4362-928f-46b455561e18

    -- forked from 01 - swap overview - chart @ https://flipsidecrypto.xyz/edit/queries/c5c10e93-9ac5-474d-b3fe-ea1e4dcded04

    -- forked from 01 - total supply og HON @ https://flipsidecrypto.xyz/edit/queries/e267be9f-72a0-4d1d-b6de-27eb0efbe375

    -- forked from 01 - hon @ https://flipsidecrypto.xyz/edit/queries/73d19a4b-154a-4b69-ac6d-1c0e7d31c172

    with

    hon AS
    (
    SELECT
    a.address AS address
    , a.symbol AS symbol
    , a.name AS name
    , a.decimals AS decimals
    FROM
    avalanche.core.dim_contracts a
    WHERE
    a.address = lower( '0xEd2b42D3C9c6E97e11755BB37df29B6375ede3EB' )
    )
    ,
    hon_price AS
    (
    SELECT
    date_trunc( 'day' , a.hour ) AS day
    , avg( a.price ) AS price_usd
    , a.symbol AS token
    FROM
    avalanche.core.fact_hourly_token_prices a
    INNER JOIN
    Run a query to Download Data