select x.id, is_group_buy, name client_name
from (select *, count(id) over(partition by user_id) cnt
      from order_info
      where datediff(date,"2025-10-15")>0
      and status ="completed"
      and product_name in ("C++","Java","Python")
) x 
left join client y on x.client_id = y.id
where x.cnt > 1
order by x.id