113没有返回值.mql 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. select count(*) from /birddata/yearmonth WHERE date like '201201*'
  2. /**
  3. output()
  4. match(count,17848)
  5. **/
  6. ;
  7. select count(*) from /birddata/yearmonth WHERE date like '201201%'
  8. /**
  9. output()
  10. match(count,17848)
  11. **/
  12. ;
  13. match ('univ_college:1633b364ee864b8ead7936054d249580')
  14. -[:contain]->()
  15. -[:contain]->()
  16. -[:teach]->('univ_doctor:*')
  17. /**
  18. output()
  19. match('graph.edges.len', 134)
  20. match('graph.nodes.len', 135)
  21. **/
  22. ;
  23. match (c:'univ_college:1633b364ee864b8ead7936054d249580')
  24. -[:contain]->()
  25. -[:contain]->()
  26. -[:teach]->(d:'univ_doctor:*')
  27. return c.name,d.name
  28. /**
  29. output()
  30. count(100)
  31. **/
  32. ;
  33. MATCH (staff:/mingdao1/staff)
  34. -[:is_member_of_project*1..1]->
  35. (project:/mingdao1/project WHERE attr1 = 'CN002859P')
  36. /**
  37. output()
  38. match('graph.edges.len', 12)
  39. match('graph.nodes.len', 13)
  40. **/
  41. ;
  42. MATCH (staff:/mingdao1/staff)
  43. -[:is_member_of_project*1..1]->
  44. (project:/mingdao1/project WHERE attr1 = 'CN002859P')
  45. RETURN staff.attr0 AS "staff_no", staff.attr1 AS "staff_name", staff.staff_perf AS "work_hours"
  46. into temp11
  47. ;
  48. match
  49. ('mingdao1_contract:ef86a698-329c-40be-a96b-b53c406e15ec',
  50. 'mingdao1_project:CN003391S-精工金属生产车间一体化智能管控中心平台实施技术服务项目')
  51. -[]-
  52. ()
  53. /**
  54. output()
  55. match('graph.edges.len', 1)
  56. match('graph.nodes.len', 2)
  57. **/
  58. ;
  59. #/uino/ | univ_college:* | print class,id
  60. /**
  61. output()
  62. **/
  63. ;
  64. select distinct class from /uino/ limit -1
  65. /**
  66. output()
  67. **/
  68. ;
  69. match ('univ_research_center:0dc1ab4d10944a0d84b07c9968dfd197')<-[:contain]-()
  70. /**
  71. output()
  72. match('graph.edges.len', 1)
  73. match('graph.nodes.len', 2)
  74. **/
  75. ;
  76. match ('univ_college:1633b364ee864b8ead7936054d249580')-[:contain]->()
  77. /**
  78. output()
  79. match('graph.edges.len', 5)
  80. match('graph.nodes.len', 6)
  81. **/
  82. ;
  83. select staff_no, staff_name,
  84. work_hours.time('2023-06-09 00:00:00','2023-06-10 00:00:00').find(name = 'CN002859P').unit('sum', '1d')
  85. from temp11
  86. /**
  87. output()
  88. **/
  89. ;
  90. select staff_perf from /mingdao1/staff where attr0='UN0193'
  91. /**
  92. timeout(5m)
  93. output()
  94. **/
  95. ;
  96. MATCH
  97. (staff:/mingdao1/staff WHERE attr1 = '钟宏')
  98. -[:is_solve_person_of_case*1..1]->
  99. (case:/mingdao1/case WHERE attr30 >= '2024-01-01' AND attr30 <= '2024-12-31')
  100. -[:is_case_of_project*1..1]->
  101. (project:/mingdao1/project)
  102. <-[:is_contract_of_project*1..1]-
  103. (contract:/mingdao1/contract),
  104. (project)
  105. <-[:is_admin_of_project*1..1]-
  106. (pm:/mingdao1/staff)
  107. RETURN contract.attr18 AS "contract_amount", contract.id AS "contract_id", pm.attr1 AS "pm_name", pm.attr0 AS "pm_id"
  108. WITH TIMEOUT = 6m
  109. /**
  110. output()
  111. **/
  112. ;
  113. select * from /mingdao1/contract where id='mingdao1_contract:ef86a698-329c-40be-a96b-b53c406e15ec'
  114. /**
  115. output()
  116. **/
  117. ;