060.mql 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. SELECT id,cast(vtime as bigint) as ntime, cast(vtime as timestamp) as stime FROM /matrix/filesystem
  2. /**
  3. output()
  4. **/
  5. ;
  6. SELECT id,cast(vtime as bigint) as ntime, cast(vtime as timestamp) as stime FROM /matrix/filesystem where vtime='1741613787088'
  7. /**
  8. output()
  9. **/
  10. ;
  11. SELECT id,cast(vtime as bigint) as ntime, cast(vtime as timestamp) as stime FROM /matrix/filesystem where vtime='2025-03-10 21:36:27.088'
  12. /**
  13. output()
  14. **/
  15. ;
  16. select count(id) as count_id, count(distinct day) as count_day from /univ_demo/org
  17. /**
  18. output()
  19. **/
  20. ;
  21. select * from /univ_demo/org
  22. /**
  23. output()
  24. **/
  25. ;
  26. select * from /univ_demo/person
  27. /**
  28. output()
  29. **/
  30. ;
  31. match (person:/univ_demo/person)-[:person_to_org]->(org:/univ_demo/org) return org.id as org_id, person.id as person_id
  32. /**
  33. output()
  34. **/
  35. ;
  36. match (person:/univ_demo/person)-[:person_to_org]->(org:/univ_demo/org)
  37. return person.id as "person_id", org.id as "org_id"
  38. /**
  39. output()
  40. **/
  41. ;
  42. select count(distinct org_id),org_id from
  43. (match (person:/univ_demo/person)-[:person_to_org]->(org:/univ_demo/org) return org.id as org_id, person.id as person_id)
  44. group by org_id having count(distinct person_id)>20
  45. /**
  46. output()
  47. **/
  48. ;
  49. select count(aaa.org_id) as lll,aaa.org_id from
  50. (match (person:/univ_demo/person)-[:person_to_org]->(org:/univ_demo/org) return person.id as "person_id", org.id as "org_id") aaa
  51. group by aaa.org_id having count(distinct aaa.person_id)>=20
  52. /**
  53. output()
  54. **/
  55. ;