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