Question: Between Siena or Cairo, population 4219900, which is lower in elevation?
Choices:
Cork
Kingston
Kilkenny
Chihuahua
Dundee
Siena
Bergen
Trieste
Cairo
Santo Domingo
Answer: Cairo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Siena" . } UNION { ?e <pred:name> "Cairo" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "4219900"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Siena
function: Find
inputs: Cairo
function: FilterNum
dependencies: 1
inputs: population
4219900
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less