Question: Does Arlington or Hollywood (the one whose elevation (above sea level) is 3 metre) have the greater population?
Choices:
Oakland
Lansing
Arlington
Waukegan
Hollywood
Compton
New Haven
Boulder
Franklin
Columbus
Answer: Arlington
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Arlington" . } UNION { ?e <pred:name> "Hollywood" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "3"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Arlington
function: Find
inputs: Hollywood
function: FilterNum
dependencies: 1
inputs: elevation above sea level
3 metre
=
function: SelectBetween
dependencies: 0
2
inputs: population
greater