Question: Which has less elevation above sea level, Reading (which is located in or next to River Thames) or Northampton (which is the residence of Errol Flynn)?
Choices:
Reading
Maidstone
Northampton
Bedford
Oxford
Taunton
Warwick
Ipswich
Dorchester
Aylesbury
Program:
function: Find
inputs: River Thames
function: Relate
dependencies: 0
inputs: located in or next to body of water
backward
function: Find
inputs: Reading
function: And
dependencies: 1
2
function: Find
inputs: Errol Flynn
function: Relate
dependencies: 4
inputs: residence
forward
function: Find
inputs: Northampton
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Reading" . ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "River Thames" .   } UNION { ?e <pred:name> "Northampton" . ?e_2 <residence> ?e . ?e_2 <pred:name> "Errol Flynn" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Northampton