Question: Which area has lower elevation above sea level, Framingham or Concord (the one that is the birthplace of Steve Carell)?
Choices:
Uxbridge
Framingham
Concord
Greenwich
Kensington
West Hartford
Chapel Hill
Bedford
Amherst
Brookline
Program:
function: Find
inputs: Framingham
function: Find
inputs: Steve Carell
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Concord
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Framingham" .  } UNION { ?e <pred:name> "Concord" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Steve Carell" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Concord