StangFAST05 - expiration date [ month ]
    Updated 2023-08-15
    -- forked from 04 - extending domain @ https://flipsidecrypto.xyz/edit/queries/f9c940b9-6685-496b-b459-50df2efb222d

    -- forked from 03 - popular domain @ https://flipsidecrypto.xyz/edit/queries/d22be001-c362-49e3-ae69-e1eb17d26e0f

    -- forked from 02 - paid it with tokens @ https://flipsidecrypto.xyz/edit/queries/02411f69-bb4d-490d-9d3e-af3cc85b5e5c

    -- forked from 01 - registering domain name @ https://flipsidecrypto.xyz/edit/queries/4ecf0c2e-f4b6-43ae-970b-0cf6e23f809d

    with

    sol_price AS
    (
    SELECT
    date_trunc( 'day' , a.recorded_hour ) AS day
    , avg( a.close ) AS price
    , a.symbol AS token
    FROM
    solana.core.fact_token_prices_hourly a
    WHERE
    a.symbol = 'SOL'
    GROUP BY 1 , 3
    ORDER BY 1 DESC
    )
    ,
    bonk_price AS
    (
    SELECT
    date_trunc( 'day' , a.recorded_hour ) AS day
    , avg( a.close ) AS price
    , a.symbol AS token
    FROM
    solana.core.fact_token_prices_hourly a
    WHERE
    a.symbol = 'BONK'
    GROUP BY 1 , 3
    ORDER BY 1 DESC
    Run a query to Download Data