Question: Which has higher elevation above sea level, Manchester (the one that is the twinned administrative body of Los Angeles) or Melbourne (the one whose population is 4529500)?
Choices:
Dundee
Trieste
Abidjan
Manchester
Kingston
Melbourne
Santo Domingo
Bergen
Cork
Kilkenny
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Manchester
function: And
dependencies: 1
2
function: Find
inputs: Melbourne
function: FilterNum
dependencies: 4
inputs: population
4529500
=
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Manchester" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Los Angeles" . } UNION { ?e <pred:name> "Melbourne" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "4529500"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Manchester