Question: What is the relationship between West Yorkshire to Wakefield (the one that is the capital of West Yorkshire)?
Choices:
production designer
territory claimed by
head coach
present in work
capital
military rank
natural product of taxon
model item
captain
killed by
Answer: capital
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "West Yorkshire" . ?e_2 <pred:name> "Wakefield" . ?e_2 <capital_of> ?e_3 . ?e_3 <pred:name> "West Yorkshire" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: West Yorkshire
function: Find
inputs: West Yorkshire
function: Relate
dependencies: 1
inputs: capital of
backward
function: Find
inputs: Wakefield
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4