Question: What is the connection between John Carter (the one whose genre is popular music) to Birmingham (the one that is the residence of J. R. R. Tolkien)?
Choices:
child astronomical body
approved by
noble title
place of birth
subject has role
copyright representative
after a work by
interested in
field of work
registered with
Answer: place of birth
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Carter" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "popular music" . ?e_2 <pred:name> "Birmingham" . ?e_4 <residence> ?e_2 . ?e_4 <pred:name> "J. R. R. Tolkien" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: popular music
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: John Carter
function: And
dependencies: 1
2
function: Find
inputs: J. R. R. Tolkien
function: Relate
dependencies: 4
inputs: residence
forward
function: Find
inputs: Birmingham
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7