Question: Which has higher elevation above sea level, Carlisle which is the headquarter location of Carlisle United F.C. or Salvador whose population is 2443107?
Choices:
Abidjan
Chihuahua
Trieste
Cork
Salvador
Bergen
Kingston
Kilkenny
Santo Domingo
Carlisle
Answer: Carlisle
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carlisle" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Carlisle United F.C." . } UNION { ?e <pred:name> "Salvador" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2443107"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Carlisle United F.C.
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Carlisle
function: And
dependencies: 1
2
function: Find
inputs: Salvador
function: FilterNum
dependencies: 4
inputs: population
2443107
=
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
greater