Question: How is politician Philip Johnson related to Harrisburg?
Choices:
movement
diaspora
maintained by
official religion
languages spoken, written or signed
has edition
instrumentation
nominated for
work location
spouse
Program:
function: Find
inputs: politician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Philip Johnson
function: And
dependencies: 1
2
function: Find
inputs: Harrisburg
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Philip Johnson" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "politician" . ?e_2 <pred:name> "Harrisburg" . ?e_1 ?p ?e_2 .  }
Answer: work location