Question: Does Northampton (whose Dewey Decimal Classification is 2--74423) or Davenport have the lower population?
Choices:
Franklin
Lansing
Greenville
Boulder
Northampton
Columbus
Davenport
Waukegan
Compton
New Haven
Answer: Northampton
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Northampton" . ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--74423" . } UNION { ?e <pred:name> "Davenport" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Northampton
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--74423
function: Find
inputs: Davenport
function: SelectBetween
dependencies: 1
2
inputs: population
less