select
user_id
from
(
select
user_id,
count(product_name) as p
from
order_info
where
product_name in('C++', 'Java', 'Python')
and status = 'completed'
and date > '2025-10-15'
group by
user_id
having
p >= 2
) as t
order by
user_id



京公网安备 11010502036488号