Question: Which area has fewer people, Rancho Mirage or Yuma (the one whose elevation (above sea level) is 43 metre)?
Choices:
Compton
Lansing
Yuma
Greenville
Columbus
Franklin
Rancho Mirage
New Haven
Waukegan
Oakland
Program:
function: Find
inputs: Rancho Mirage
function: Find
inputs: Yuma
function: FilterNum
dependencies: 1
inputs: elevation above sea level
43 metre
=
function: SelectBetween
dependencies: 0
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rancho Mirage" . } UNION { ?e <pred:name> "Yuma" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "43"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Rancho Mirage