Question: How is Montgomery County, which contains the capital of Norristown, related to Berks County?
Choices: public holiday
military rank
practiced by
derivative work
lifestyle
shares border with
has immediate cause
professional or sports partner
licensed to broadcast to
instrument
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Montgomery County" . ?e_1 <capital> ?e_3 . ?e_3 <pred:name> "Norristown" . ?e_2 <pred:name> "Berks County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Norristown
function: Relate
dependencies: 0
inputs: capital
backward
function: Find
inputs: Montgomery County
function: And
dependencies: 1
2
function: Find
inputs: Berks County
function: QueryRelation
dependencies: 3
4
Answer: shares border with