993.match.mql 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. MATCH
  2. (person:/univ_demo/person
  3. WHERE lx_date >= '2020-01-01 00:00:00'
  4. AND age <= 45
  5. AND status in ('在职', '报到中')
  6. AND person_sort = '事业编'
  7. AND staff_type = '专任教师岗位')
  8. -[:person_to_org*1..1]->
  9. (org:/univ_demo/org WHERE name = '计算机学院'),
  10. (person:/univ_demo/person
  11. WHERE lx_date >= '2020-01-01 00:00:00'
  12. AND age <= 45
  13. AND status in ('在职', '报到中')
  14. AND person_sort = '事业编'
  15. AND staff_type = '专任教师岗位')
  16. -[:person_to_szxxsb*1..1]->
  17. (honor:/univ_demo/szxxsb
  18. WHERE gccrc in ('国家级人才A类', '国家级人才B类', '国家级人才C类', '省部级人才')
  19. AND xm_name like '*青年人才计划*'),
  20. (person)
  21. -[:person_to_master*1..1]->
  22. (student:/univ_demo/student_master)
  23. -[:own_paper*1..1]->
  24. (paper:/univ_demo/paper
  25. WHERE level in ('A类', 'B类')
  26. AND type in ('期刊', '会议')
  27. AND keywords like '*人工智能*')
  28. RETURN person.id, org.id, honor.id, student.id, paper.id
  29. /**
  30. output()
  31. count(8)
  32. **/
  33. ;
  34. MATCH
  35. (person:/univ_demo/person
  36. WHERE lx_date >= '2020-01-01 00:00:00'
  37. AND age <= 45
  38. AND status in ('在职', '报到中')
  39. AND person_sort = '事业编'
  40. AND staff_type = '专任教师岗位')
  41. -[:person_to_org*1..1]->
  42. (org:/univ_demo/org WHERE name = '计算机学院'),
  43. (person:/univ_demo/person
  44. WHERE lx_date >= '2020-01-01 00:00:00'
  45. AND age <= 45
  46. AND status in ('在职', '报到中')
  47. AND person_sort = '事业编'
  48. AND staff_type = '专任教师岗位')
  49. -[:person_to_szxxsb*1..1]->
  50. (honor:/univ_demo/szxxsb
  51. WHERE gccrc in ('国家级人才A类', '国家级人才B类', '国家级人才C类', '省部级人才')
  52. AND xm_name like '*青年人才计划*'),
  53. (person)
  54. -[:person_to_master*1..1]->
  55. (student:/univ_demo/student_master)
  56. -[:own_paper*1..1]->
  57. (paper:/univ_demo/paper
  58. WHERE level in ('A类', 'B类')
  59. AND type in ('期刊', '会议')
  60. AND keywords like '*人工智能*')
  61. RETURN person.name AS "teacher_name", person.account AS "teacher_account", org.name AS "org_name", org.up AS "org_up", honor.gccrc AS "honor_gccrc", student.name AS "student_name", student.account AS "student_account", paper.title AS "paper_title", paper.abstract AS "paper_abstract", paper.keywords AS "paper_keywords", paper.journals AS "paper_journals", paper.level AS "paper_level", paper.type AS "paper_type", paper.paper_file AS "paper_file", paper.name AS "_univ_demo_paper_name_0"
  62. /**
  63. output()
  64. count(8)
  65. **/
  66. ;
  67. MATCH
  68. (person:/univ_demo/person
  69. WHERE lx_date >= '2020-01-01 00:00:00'
  70. AND age <= 45
  71. AND status in ('在职', '报到中')
  72. AND person_sort = '事业编'
  73. AND staff_type = '专任教师岗位')
  74. -[:person_to_org*1..1]->
  75. (org:/univ_demo/org WHERE name = '计算机学院'),
  76. (person:/univ_demo/person
  77. WHERE lx_date >= '2020-01-01 00:00:00'
  78. AND age <= 45
  79. AND status in ('在职', '报到中')
  80. AND person_sort = '事业编'
  81. AND staff_type = '专任教师岗位')
  82. -[:person_to_szxxsb*1..1]->
  83. (honor:/univ_demo/szxxsb
  84. WHERE gccrc in ('国家级人才A类', '国家级人才B类', '国家级人才C类', '省部级人才')
  85. AND xm_name like '*青年人才计划*'),
  86. (person)
  87. -[:person_to_master*1..1]->
  88. (student:/univ_demo/student_master)
  89. -[:own_paper*1..1]->
  90. (paper:/univ_demo/paper
  91. WHERE level in ('A类', 'B类')
  92. AND type in ('期刊', '会议')
  93. AND keywords like '*人工智能*')
  94. /**
  95. output()
  96. match("graph.edges.len",26,"graph.nodes.len",27)
  97. **/
  98. ;