Advertisement
Guest User

BigData Supelec

a guest
Feb 21st, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. MATCH (n:Movie)<-[r:RATED]-(u:User)
  2. WHERE r.rate>=3 AND u.id=3
  3. WITH u, n AS filmLikesC, count(n) AS nbLikesC
  4. MATCH (m:Movie)<-[r:RATED]-(v:User)
  5. WHERE v.id<>3 AND r.rate>=3 AND filmLikesC.titre=m.titre
  6. RETURN v, count(m);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement