select c.coutomer_id,count(o.order_id) as orders_ct
from customer c join orders o on c.customer_id = o.customer_id
where c.gender='f'
group by c.customer_id
having count(o.cutomer_id) > 4
order by oders_st,c.cutomer_id
from customer c join orders o on c.customer_id = o.customer_id
where c.gender='f'
group by c.customer_id
having count(o.cutomer_id) > 4
order by oders_st,c.cutomer_id