Question: Which place is smaller in area, Salem with a population of 41340 or Scottsdale?
Choices: Boulder
Waukegan
Greenville
Franklin
Lansing
Compton
Salem
New Haven
Columbus
Oakland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Salem" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "41340"^^xsd:double . } UNION { ?e <pred:name> "Scottsdale" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Salem
function: FilterNum
dependencies: 0
inputs: population
41340
=
function: Find
inputs: Scottsdale
function: SelectBetween
dependencies: 1
2
inputs: area
less
Answer: Salem