Question: How is Elsevier related to Philadelphia which is the headquarter location of The Wharton School?
Choices:
set in period
continent
headquarters location
genre
has contributing factor
subsidiary
creator
depicted by
partially contains
public holiday
Answer: headquarters location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Elsevier" . ?e_2 <pred:name> "Philadelphia" . ?e_3 <headquarters_location> ?e_2 . ?e_3 <pred:name> "The Wharton School" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Elsevier
function: Find
inputs: The Wharton School
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Philadelphia
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4