Question: Tell me the one with the bigger population, Florence (which has an elevation (over sea level) of 42 metres) or Raleigh.
Choices:
New Haven
Compton
Lansing
Columbus
Franklin
Greenville
Oakland
Boulder
Raleigh
Waukegan
Answer: Raleigh
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Florence" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "42"^^xsd:double . } UNION { ?e <pred:name> "Raleigh" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Florence
function: FilterNum
dependencies: 0
inputs: elevation above sea level
42 metre
=
function: Find
inputs: Raleigh
function: SelectBetween
dependencies: 1
2
inputs: population
greater