

MATCH (contract:/mingdao1/contract WHERE attr16 > 1e+06)
-[:is_contract_of_project*1..1]->
(project:/mingdao1/project WHERE attr40 like '*已完成*' AND attr45 >= '2024-01-01' AND attr45 <= '2024-12-31')
<-[:is_admin_of_project*1..1]-
(pm:/mingdao1/staff), 
(pm:/mingdao1/staff)
-[:is_solve_person_of_case*1..1]->
(case:/mingdao1/case) 
RETURN pm.id AS "pm_id", pm.attr1 AS "pm_name", case.id AS "case_id" 
INTO /t1 ;

SELECT t1.pm_id AS "员工ID", t1.pm_name AS "员工姓名", count(t1.case_id) AS "解决案例数量" 
FROM /t1 t1 
GROUP BY t1.pm_id, t1.pm_name 
HAVING count(t1.case_id) > 5
/**
output()
**/
;
