Question: Which has higher elevation above sea level, Liverpool (the one that is the headquarter location of Everton F.C.) or Manchester (the one that is the headquarter location of University of Manchester)?
Choices:
Dundee
Liverpool
Trieste
Abidjan
Manchester
Cork
Santo Domingo
Kingston
Kilkenny
Chihuahua
Program:
function: Find
inputs: Everton F.C.
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Liverpool
function: And
dependencies: 1
2
function: Find
inputs: University of Manchester
function: Relate
dependencies: 4
inputs: headquarters location
forward
function: Find
inputs: Manchester
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Liverpool" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Everton F.C." .   } UNION { ?e <pred:name> "Manchester" . ?e_2 <headquarters_location> ?e . ?e_2 <pred:name> "University of Manchester" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Liverpool