Question: Which has lower elevation above sea level, Reading (the one whose local dialing code is 0118) or Northampton (the one that is the residence of Errol Flynn)?
Choices:
Reading
Maidstone
Taunton
Aylesbury
Warwick
Ipswich
Oxford
Northampton
Bedford
Dorchester
Program:
function: Find
inputs: Reading
function: FilterStr
dependencies: 0
inputs: local dialing code
0118
function: Find
inputs: Errol Flynn
function: Relate
dependencies: 2
inputs: residence
forward
function: Find
inputs: Northampton
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Reading" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "0118" . } UNION { ?e <pred:name> "Northampton" . ?e_1 <residence> ?e . ?e_1 <pred:name> "Errol Flynn" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Northampton