Question: Does Palo Alto, birthplace of Hewlett-Packard, or Charleston, capital of West Virginia, have less elevation above sea level?
Choices: Oakland
Charleston
Columbus
Greenville
Boulder
Palo Alto
Compton
Franklin
Waukegan
Lansing
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Palo Alto" . ?e_1 <location_of_formation> ?e . ?e_1 <pred:name> "Hewlett-Packard" .   } UNION { ?e <pred:name> "Charleston" . ?e <capital_of> ?e_2 . ?e_2 <pred:name> "West Virginia" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Hewlett-Packard
function: Relate
dependencies: 0
inputs: location of formation
forward
function: Find
inputs: Palo Alto
function: And
dependencies: 1
2
function: Find
inputs: West Virginia
function: Relate
dependencies: 4
inputs: capital of
backward
function: Find
inputs: Charleston
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: elevation above sea level
less
Answer: Palo Alto