Question: Is the elevation lower for Minnesota, which borders Michigan, or California, the location of Napa County?
Choices: Florida
California
Massachusetts
Hawaii
Minnesota
Iowa
Kansas
Illinois
New Mexico
Colorado
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Minnesota" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Michigan" .   } UNION { ?e <pred:name> "California" . ?e_2 <located_in_the_administrative_territorial_entity> ?e . ?e_2 <pred:name> "Napa County" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Michigan
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Minnesota
function: And
dependencies: 1
2
function: Find
inputs: Napa County
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
forward
function: Find
inputs: California
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: elevation above sea level
less
Answer: Minnesota