

MATCH (pm:/mingdao1/staff)
    -[:is_admin_of_project*1..1]->
        (project:/mingdao1/project WHERE attr33 = '南区事业部' AND attr40 = '已完成有验收报告' AND attr45 >= '2024-01-01' AND attr45 <= '2024-12-31')
    <-[:is_contract_of_project*1..1]-
        (contract:/mingdao1/contract) 
RETURN pm.attr1 AS "pm_name", contract.attr66 AS "contract_amount" INTO temp_table1
/**
output()
**/
;

select * from temp_table1
/**
output()
**/
;


MATCH (staff:/mingdao1/staff WHERE attr5 = '技术研发中心')
    -[:is_duty_sales_of_contract|is_member_sales_of_contract|is_pm_of_contract|is_presales_of_contract|is_sales_of_contract*1..1]->
        (contract:/mingdao1/contract WHERE attr15 > 1e+06)
    -[:is_contract_of_project*1..1]->
        (project:/mingdao1/project)
RETURN staff.attr1 AS "staff_name", contract.attr2 AS "contract_number", contract.attr15 AS "contract_amount", project.attr3 AS "project_name"

/**
output()
**/
;
