select id,user_id,product_name,status,client_id,date
from (select *,count(*)over(partition by user_id ) as c
from order_info
where product_name in ('C++','Java','Python') and date > '2025-10-15'
and status = 'completed'
) u
where u.c >= 2
order by id

count()over()窗口函数