Question: Does the county of Penobscot or of Hancock (an administrative division of Maine) have the smaller area?
Choices:
Cumberland County
Franklin County
Kennebec County
York County
Aroostook County
Washington County
Oxford County
Penobscot County
Hancock County
Somerset County
Program:
function: Find
inputs: Penobscot County
function: Find
inputs: Maine
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
forward
function: Find
inputs: Hancock County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Penobscot County" .  } UNION { ?e <pred:name> "Hancock County" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Maine" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hancock County