Question: How is Middlesex County whose population is 809858 related to Somerset County whose population is 328246?
Choices:
country for sport
material used
country of citizenship
member of political party
penalty
shares border with
location
nutrient
official residence
newspaper format
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Middlesex County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "809858"^^xsd:double . ?e_2 <pred:name> "Somerset County" . ?e_2 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "328246"^^xsd:double . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Middlesex County
function: FilterNum
dependencies: 0
inputs: population
809858
=
function: Find
inputs: Somerset County
function: FilterNum
dependencies: 2
inputs: population
328246
=
function: QueryRelation
dependencies: 1
3