Question: I need to know the relationship from Alexander (the person who has family House of Orange-Nassau) to House of Orange-Nassau.
Choices:
takes place in fictional universe
film editor
drug used for treatment
family
grants
has quality
indigenous to
work location
publisher
mountain range
Program:
function: Find
inputs: House of Orange-Nassau
function: Relate
dependencies: 0
inputs: family
backward
function: Find
inputs: Alexander
function: And
dependencies: 1
2
function: Find
inputs: House of Orange-Nassau
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Alexander" . ?e_1 <family> ?e_3 . ?e_3 <pred:name> "House of Orange-Nassau" . ?e_2 <pred:name> "House of Orange-Nassau" . ?e_1 ?p ?e_2 .  }
Answer: family