Question: What is the connection between Somerset County (the one whose population is 324175) to Union County (the one that shares border with Hudson County)?
Choices:
uses
musical conductor
cites
capital
designed to carry
public holiday
mother
newspaper format
shares border with
territory claimed by
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Somerset County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "324175"^^xsd:double . ?e_2 <pred:name> "Union County" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "Hudson County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Somerset County
function: FilterNum
dependencies: 0
inputs: population
324175
=
function: Find
inputs: Hudson County
function: Relate
dependencies: 2
inputs: shares border with
forward
function: Find
inputs: Union County
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5