Updated 2023-01-04
    -- with first_transfer_to as (
    -- select receiver as new_address,
    -- min(block_timestamp) as first_transfer_date
    -- from osmosis.core.fact_transfers
    -- where tx_succeeded = TRUE
    -- group by 1
    -- ),

    -- first_transactions as (
    -- select tx_from as new_active_address,
    -- min(block_timestamp) as first_transaction_date
    -- from osmosis.core.fact_transactions
    -- where tx_succeeded = TRUE
    -- group by 1
    -- ),

    with airdrop as (
    select a.block_timestamp,
    a.tx_id,
    a.receiver,
    l.project_name as symbol,
    a.amount/pow(10,a.decimal) as token_amount
    from osmosis.core.fact_airdrop a
    left join osmosis.core.dim_labels l
    on a.currency = l.address
    ),
    prices as (
    select date_trunc('hour', recorded_at) as fecha,
    symbol,
    avg(price) as avg_price
    from osmosis.core.dim_prices
    --where symbol != 'IOV'
    group by 1,2
    ),

    Run a query to Download Data