openCypher
1 program
Added 2026-03-17T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Open Cypher, Cypher Query Language
Provenance: commit 70fde221a9 · authored 2026-03-17T03:46:50+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Friends of Friends Query
Provenance: commit 70fde221a9 · authored 2026-03-17T03:46:50+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
// Find all direct friends and friends-of-friends of a person
MATCH (p:Person {name: 'Alice'})-[:KNOWS]->(friend:Person)
OPTIONAL MATCH (friend)-[:KNOWS]->(fof:Person)
WHERE fof <> p AND NOT (p)-[:KNOWS]->(fof)
WITH friend, collect(DISTINCT fof) AS friendsOfFriends
RETURN friend.name AS directFriend,
[x IN friendsOfFriends | x.name] AS suggestions
ORDER BY friend.name