Question: Which area has higher elevation (above sea level), Baghdad or Jerusalem (the one whose population is 75200)?
Choices:
Santo Domingo
Kingston
Trieste
Jerusalem
Cork
Abidjan
Bergen
Baghdad
Chihuahua
Dundee
Answer: Jerusalem
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Baghdad" . } UNION { ?e <pred:name> "Jerusalem" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "75200"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Baghdad
function: Find
inputs: Jerusalem
function: FilterNum
dependencies: 1
inputs: population
75200
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater