Question: What is the relationship between Chichester (the one that is the capital of West Sussex) and West Sussex?
Choices:
derivative work
donated by
symptom of
sport
different from
field of this occupation
cast member
writing system
location of final assembly
capital of
Program:
function: Find
inputs: West Sussex
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Chichester
function: And
dependencies: 1
2
function: Find
inputs: West Sussex
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Chichester" . ?e_1 <capital_of> ?e_3 . ?e_3 <pred:name> "West Sussex" . ?e_2 <pred:name> "West Sussex" . ?e_1 ?p ?e_2 .  }
Answer: capital of