SPARQL:
PREFIX p: <http://www.people.org/> SELECT ?X ?Y WHERE { ?X p:parent ?Y }
Cypher:
MATCH (person1:Person)-[:parent]->(person2:Person) RETURN person1, person2