Question: Which has higher elevation above sea level, Tulsa (the one that is the birthplace of Bill Hader) or Prescott?
Choices:
Columbus
Compton
Prescott
Lansing
Greenville
New Haven
Franklin
Boulder
Tulsa
Waukegan
Program:
function: Find
inputs: Bill Hader
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Tulsa
function: And
dependencies: 1
2
function: Find
inputs: Prescott
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tulsa" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Bill Hader" .   } UNION { ?e <pred:name> "Prescott" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Prescott