Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BL-16 #19

Open
davidfauth opened this issue Jul 21, 2019 · 1 comment
Open

BL-16 #19

davidfauth opened this issue Jul 21, 2019 · 1 comment

Comments

@davidfauth
Copy link

MATCH (p:Person {id: 19791209310731})
with p
call apoc.path.subgraphNodes(p, {maxLevel:5, relationshipFilter:'KNOWS'})
yield node
with distinct node as person
MATCH
(person)-[:IS_LOCATED_IN]->(:City)-[:IS_PART_OF]->(:Country {name: 'Pakistan'})
with distinct person
match
(person)<-[:HAS_CREATOR]-(message:Message)-[:HAS_TAG]->(tag:Tag)-[:HAS_TYPE]->
(:TagClass {name: 'MusicalArtist'})
RETURN
person.id,
tag.name,
count(DISTINCT message) AS messageCount
ORDER BY
messageCount DESC,
tag.name ASC,
person.id ASC
LIMIT 100

@maxdemarzi
Copy link
Owner

added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants