Question: Which has less elevation above sea level, Victoria that contains Ballarat or canton of Zürich?
Choices:
New South Wales
Punjab
Minas Gerais
Chiapas
Victoria
England
Upper Austria
Greater Poland Voivodeship
Lublin Voivodeship
canton of Zürich
Program:
function: Find
inputs: Ballarat
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Victoria
function: And
dependencies: 1
2
function: Find
inputs: canton of Zürich
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Victoria" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Ballarat" .   } UNION { ?e <pred:name> "canton of Zürich" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Victoria