Question: Which area is smaller in size, Haverhill or Anderson (the one whose postal code is 46011–46018)?
Choices:
Boulder
Oakland
Anderson
Compton
Greenville
Haverhill
Waukegan
New Haven
Columbus
Lansing
Program:
function: Find
inputs: Haverhill
function: Find
inputs: Anderson
function: FilterStr
dependencies: 1
inputs: postal code
46011–46018
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Haverhill" . } UNION { ?e <pred:name> "Anderson" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "46011–46018" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Haverhill