select a.user_id,a.first_buy_date,c.second_buy_date,a.cnt from (select distinct user_id,min(date) as first_buy_date,count(*)as cnt from order_info where product_name in ('C++','Python','Java') and status='completed' and date>'2025-10-15' group by user_id having count(*)>=2) as a, (select user_...