Popex404#7 ARB Allocation - Sushiswap Users copy
    Updated 2023-03-27
    with
    treasure as (
    select tx_hash
    from arbitrum.core.fact_event_logs
    join arbitrum.core.dim_labels on contract_address=address
    where project_name = 'treasure dao'
    ),

    gmx as (
    select tx_hash
    from arbitrum.core.fact_event_logs
    join arbitrum.core.dim_labels on contract_address=address
    where project_name = 'gmx'
    ),

    uniswap as (
    select tx_hash
    from arbitrum.core.fact_event_logs
    join arbitrum.core.dim_labels on contract_address=address
    where project_name = 'uniswap'
    ),

    sushiswap as (
    select tx_hash
    from arbitrum.core.fact_event_logs
    join arbitrum.core.dim_labels on contract_address=address
    where project_name = 'sushiswap'
    ),

    labels as (
    select tx_hash, label_type
    from arbitrum.core.fact_event_logs
    join arbitrum.core.dim_labels on contract_address=address
    ),

    sushiswap_user as (
    Run a query to Download Data