hasan-_Untitled Query
    with lst_tx as (
    select
    FROM_ADDRESS as wallet
    ,min(block_timestamp::date) as day
    from gnosis.core.fact_transactions
    where block_timestamp::date>=CURRENT_DATE-90
    and status='SUCCESS'
    group by 1
    )
    ,lst_check as (
    select
    TO_ADDRESS
    ,count(DISTINCT tx_id) as tx_count
    from gnosis.core.fact_transactions
    where block_timestamp::date>=CURRENT_DATE-90
    and status='SUCCESS'
    group by 1
    having tx_count>=1
    )
    ,lst_check_two as (
    select
    to_address as wallet
    ,min(block_timestamp::date) as day
    from gnosis.core.fact_transactions
    where block_timestamp::date>=CURRENT_DATE-90
    and to_address in(select lst_check.to_address from lst_check)
    and status='SUCCESS'
    group by 1
    )

    ,lst_all as (
    select day,wallet from lst_tx
    union all
    select day,wallet from lst_check_two
    )

    Run a query to Download Data