Question: Which has less area, Washington County that borders Aroostook County or Hancock County whose population is 54347?
Choices:
Kennebec County
Cumberland County
Oxford County
Penobscot County
York County
Franklin County
Hancock County
Washington County
Aroostook County
Somerset County
Program:
function: Find
inputs: Aroostook County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Washington County
function: And
dependencies: 1
2
function: Find
inputs: Hancock County
function: FilterNum
dependencies: 4
inputs: population
54347
=
function: SelectBetween
dependencies: 3
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Washington County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Aroostook County" . } UNION { ?e <pred:name> "Hancock County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "54347"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hancock County