Question: What is the relationship between Hunterdon County and Somerset County, with which it shares a border?
Choices:
official language
parent astronomical body
office contested
diplomatic relation
shares border with
capital of
doctoral advisor
mascot
seed team
archives at
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hunterdon County" . ?e_2 <pred:name> "Somerset County" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "Hunterdon County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Hunterdon County
function: Find
inputs: Hunterdon County
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Somerset County
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4