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

New Questions to be supported #2

Open
wey-gu opened this issue Nov 22, 2022 · 0 comments
Open

New Questions to be supported #2

wey-gu opened this issue Nov 22, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@wey-gu
Copy link
Owner

wey-gu commented Nov 22, 2022

  1. Who is the best friend of {}?
MATCH (start:player{name: "Tim Duncan"})-[:follow]-(f:player)-[:follow]-(fof:player),
(start:player)-[:follow]-(fof:player)
RETURN fof.player.name, count(f) AS NrOfMutualF ORDER BY NrOfMutualF DESC LIMIT 1;
  1. Could you suggest one new friend for {}?
MATCH (start:player{name: "Tim Duncan"})-[:follow]-(f:player)-[:follow]-(fof:player)
WHERE NOT (start:player)-[:follow]-(fof:player) AND fof != start
RETURN fof.player.name, count(f) AS NrOfMutualF ORDER BY NrOfMutualF DESC LIMIT 1;
@wey-gu wey-gu added the help wanted Extra attention is needed label Nov 22, 2022
@wey-gu wey-gu changed the title New Questions New Questions to be supported Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant