Question: Which has fewer people, Albany (the one whose population is 77434) or Escondido?
Choices:
Boulder
Columbus
Greenville
Albany
Waukegan
Oakland
New Haven
Franklin
Escondido
Lansing
Program:
function: Find
inputs: Albany
function: FilterNum
dependencies: 0
inputs: population
77434
=
function: Find
inputs: Escondido
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Albany" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "77434"^^xsd:double . } UNION { ?e <pred:name> "Escondido" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Albany