Question: What is the relationship between Washington County (the one that shares border with Aroostook County) and Hancock County (the one whose population is 54530)?
Choices:
contributing factor of
commissioned by
home world
shares border with
office held by head of the organisation
business division
found
designed by
public holiday
contains administrative territorial entity
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Washington County" . ?e_1 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Aroostook County" . ?e_2 <pred:name> "Hancock County" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "54530"^^xsd:double . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Aroostook County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Washington County
function: And
dependencies: 1
2
function: Find
inputs: Hancock County
function: FilterNum
dependencies: 4
inputs: population
54530
=
function: QueryRelation
dependencies: 3
5