select user_id,min(date) first_buy_date,cnt
from (select ,
count(
)over(partition by user_id) cnt
from order_info
where status = 'completed'
and product_name in ('C++','Java','Python')
and date > '2025-10-15') t
where cnt >= 2
group by user_id
order by user_id;