Question: Does Vancouver, birthplace of Joshua Jackson, or Tours have the lower elevation?
Choices:
Stuttgart
Fort Smith
Aachen
Lyon
Halle (Saale)
Vancouver
Wuppertal
Dnipro
Tours
Bordeaux
Program:
function: Find
inputs: Joshua Jackson
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Vancouver
function: And
dependencies: 1
2
function: Find
inputs: Tours
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Vancouver" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Joshua Jackson" .   } UNION { ?e <pred:name> "Tours" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Vancouver