Question: Tell me the one with the smaller elevation (over sea level), Hanover (with a population of 11874) or Auckland.
Choices:
Dundee
Auckland
Bergen
Kingston
Trieste
Kilkenny
Santo Domingo
Abidjan
Hanover
Chihuahua
Program:
function: Find
inputs: Hanover
function: FilterNum
dependencies: 0
inputs: population
11874
=
function: Find
inputs: Auckland
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hanover" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "11874"^^xsd:double . } UNION { ?e <pred:name> "Auckland" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hanover