Question: Which has less population, Montevideo or Ipswich (whose above sea level elevation is 50 metres)?
Choices:
Montevideo
Bergen
Kilkenny
Abidjan
Cork
Ipswich
Trieste
Chihuahua
Kingston
Dundee
Answer: Ipswich
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Montevideo" . } UNION { ?e <pred:name> "Ipswich" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "50"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Montevideo
function: Find
inputs: Ipswich
function: FilterNum
dependencies: 1
inputs: elevation above sea level
50 metre
=
function: SelectBetween
dependencies: 0
2
inputs: population
less