Question: Which occupies the smaller area: Somerset County that borders Penobscot County, or Oxford County?
Choices: Washington County
Penobscot County
Oxford County
Hancock County
Kennebec County
Aroostook County
York County
Cumberland County
Somerset County
Franklin County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Somerset County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Penobscot County" .   } UNION { ?e <pred:name> "Oxford County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Penobscot County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Somerset County
function: And
dependencies: 1
2
function: Find
inputs: Oxford County
function: SelectBetween
dependencies: 3
4
inputs: area
less
Answer: Oxford County