Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (ingredient)-[:IS_PART_OF]->(recipe)
- MATCH (recipe:RECIPE{ ID: 1000000 }),(other)
- WHERE (other.ID >= 1000001 AND other.ID <= 1057690)
- OPTIONAL MATCH (recipe:RECIPE)<-[:IS_PART_OF]-(ingredient:INGREDIENT)- [:IS_PART_OF]->(other)
- WITH ingredient, other
- RETURN other.ID, count(distinct ingredient.name)
- ORDER BY other.ID DESC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement