Question: Is the elevation lower in Bedford, where E. G. Marshall died, or Kensington (local dialing code 240)?
Choices:
Morristown
Litchfield
West Hartford
Bedford
Uxbridge
Kensington
Amherst
Chapel Hill
Westport
Greenwich
Program:
function: Find
inputs: E. G. Marshall
function: Relate
dependencies: 0
inputs: place of death
forward
function: Find
inputs: Bedford
function: And
dependencies: 1
2
function: Find
inputs: Kensington
function: FilterStr
dependencies: 4
inputs: local dialing code
240
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bedford" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "E. G. Marshall" . } UNION { ?e <pred:name> "Kensington" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "240" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kensington