Question: How is British Columbia Liberal Party related to Vancouver (the one that is the filming location of Rise of the Planet of the Apes) ?
Choices:
appears in the form of
office held by head of government
position held
headquarters location
significant person
has immediate cause
shares border with
tributary
hair color
used by
Answer: headquarters location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "British Columbia Liberal Party" . ?e_2 <pred:name> "Vancouver" . ?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: British Columbia Liberal Party
function: Find
inputs: Rise of the Planet of the Apes
function: Relate
dependencies: 1
inputs: filming location
forward
function: Find
inputs: Vancouver
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4