Question: What is the connection between John Wood (the one that is buried in Pennsylvania) to Philadelphia (the one that is the filming location of The Philadelphia Story)?
Choices:
candidate
soundtrack album
genre
main food source
member of sports team
place of birth
drug used for treatment
filmography
appears in the form of
contributing factor of
Answer: place of birth
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Wood" . ?e_1 <place_of_burial> ?e_3 . ?e_3 <pred:name> "Pennsylvania" . ?e_2 <pred:name> "Philadelphia" . ?e_4 <filming_location> ?e_2 . ?e_4 <pred:name> "The Philadelphia Story" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 0
inputs: place of burial
backward
function: Find
inputs: John Wood
function: And
dependencies: 1
2
function: Find
inputs: The Philadelphia Story
function: Relate
dependencies: 4
inputs: filming location
forward
function: Find
inputs: Philadelphia
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7