Question: Is the elevation lower in Northampton, capital of Northamptonshire, or in Reading, where Sam Mendes was born?
Choices: Ipswich
Taunton
Maidstone
Aylesbury
Northampton
Dorchester
Warwick
Bedford
Oxford
Reading
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Northampton" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Northamptonshire" .   } UNION { ?e <pred:name> "Reading" . ?e_2 <place_of_birth> ?e . ?e_2 <pred:name> "Sam Mendes" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Northamptonshire
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Northampton
function: And
dependencies: 1
2
function: Find
inputs: Sam Mendes
function: Relate
dependencies: 4
inputs: place of birth
forward
function: Find
inputs: Reading
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: elevation above sea level
less
Answer: Northampton