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