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