with
t1 as(
select
product_id,
count(product_id) as cnt
from
user_client_log
where
step='order'
group by
product_id
order by product_id
)
select * from t1 limit 1

with
t1 as(
select
product_id,
count(product_id) as cnt
from
user_client_log
where
step='order'
group by
product_id
order by product_id
)
select * from t1 limit 1