Question: What is the connection between Walter Wanger to San Francisco (the one that is the filming location of Rise of the Planet of the Apes)?
Choices:
draft pick from school
medical condition
place of birth
drug used for treatment
chairperson
opposite of
home venue
does not have part
practiced by
connects with
Answer: place of birth
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Walter Wanger" . ?e_2 <pred:name> "San Francisco" . ?e_3 <filming_location> ?e_2 . ?e_3 <pred:name> "Rise of the Planet of the Apes" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Walter Wanger
function: Find
inputs: Rise of the Planet of the Apes
function: Relate
dependencies: 1
inputs: filming location
forward
function: Find
inputs: San Francisco
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4