Question: Is the elevation higher in Greensburg or in Pittsburgh, where Lou Scheimer was born?
Choices:
Chester
Harrisburg
Greensburg
Wilkes-Barre
Erie
Pittsburgh
Easton
York
Philadelphia
Johnstown
Program:
function: Find
inputs: Greensburg
function: Find
inputs: Lou Scheimer
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Pittsburgh
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Greensburg" .  } UNION { ?e <pred:name> "Pittsburgh" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Lou Scheimer" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Pittsburgh