067countdistinct.mql 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. MATCH (person:/univ_demo/person WHERE status = '在职' AND person_sort = '事业编' AND staff_type = '专任教师岗位')
  2. -[:person_to_tech_duty*1..1]->
  3. (tech_duty:/univ_demo/tech_duty WHERE duty_level = '正高级' AND last_flag = '是')
  4. RETURN person.account AS "person_account", tech_duty.account AS "tech_duty_account"
  5. INTO /temp01_senior_teacher_701310d2-44f1-43cc-8fee-3f2cb9c37e06-0 WITH TIMEOUT = 6m
  6. ;
  7. SELECT temp01.person_account
  8. FROM /temp01_senior_teacher_701310d2-44f1-43cc-8fee-3f2cb9c37e06-0 temp01 LIMIT 0, 500000
  9. /**
  10. output()
  11. **/
  12. ;
  13. SELECT count(temp01.person_account) AS "senior_teacher_count"
  14. FROM /temp01_senior_teacher_701310d2-44f1-43cc-8fee-3f2cb9c37e06-0 temp01 LIMIT 0, 500000
  15. /**
  16. output()
  17. **/
  18. ;
  19. SELECT count(DISTINCT temp01.person_account) AS "senior_teacher_count"
  20. FROM /temp01_senior_teacher_701310d2-44f1-43cc-8fee-3f2cb9c37e06-0 temp01 LIMIT 0, 500000
  21. /**
  22. output()
  23. **/
  24. ;
  25. SELECT count(temp01.person_account) AS "senior_teacher_count" FROM (
  26. MATCH (person:/univ_demo/person WHERE status = '在职' AND person_sort = '事业编' AND staff_type = '专任教师岗位')
  27. -[:person_to_tech_duty*1..1]->
  28. (tech_duty:/univ_demo/tech_duty WHERE duty_level = '正高级' AND last_flag = '是')
  29. RETURN person.account AS "person_account", tech_duty.account AS "tech_duty_account"
  30. ) temp01 LIMIT 0, 500000 WITH TIMEOUT = 6m
  31. /**
  32. output()
  33. **/
  34. ;
  35. SELECT count(DISTINCT temp01.person_account) AS "senior_teacher_count" FROM (
  36. MATCH (person:/univ_demo/person WHERE status = '在职' AND person_sort = '事业编' AND staff_type = '专任教师岗位')
  37. -[:person_to_tech_duty*1..1]->
  38. (tech_duty:/univ_demo/tech_duty WHERE duty_level = '正高级' AND last_flag = '是')
  39. RETURN person.account AS "person_account", tech_duty.account AS "tech_duty_account"
  40. ) temp01 LIMIT 0, 500000 WITH TIMEOUT = 6m
  41. /**
  42. output()
  43. **/
  44. ;