MoeFailed
    with sushi as ((select ADDRESS
    from ethereum.core.dim_labels
    where
    LABEL ILIKE '%sushi%') )
    ,base as (

    ( select
    'Remove Liquidity' as type,
    origin_to_address address
    from
    ethereum.core.fact_event_logs
    where
    event_name ilike '%RemoveLiquidity%'
    and contract_address IN (select ADDRESS
    from sushi)
    or origin_to_address in (select ADDRESS from sushi)
    )
    union all


    ( select
    'Add Liquidity' as type,
    origin_to_address address
    from
    ethereum.core.fact_event_logs
    where
    event_name ilike '%AddLiquidity%'
    and contract_address in (select ADDRESS
    from sushi)
    or origin_to_address in (select ADDRESS from sushi)
    )
    Run a query to Download Data