Question: Which area is smaller, Hancock County (the one whose population is 54659) or Somerset County (the one whose population is 51824)?
Choices:
Hancock County
Penobscot County
Kennebec County
York County
Aroostook County
Cumberland County
Franklin County
Somerset County
Washington County
Oxford County
Program:
function: Find
inputs: Hancock County
function: FilterNum
dependencies: 0
inputs: population
54659
=
function: Find
inputs: Somerset County
function: FilterNum
dependencies: 2
inputs: population
51824
=
function: SelectBetween
dependencies: 1
3
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hancock County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "54659"^^xsd:double . } UNION { ?e <pred:name> "Somerset County" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "51824"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hancock County