Question: Does Alabama, home of Troy University, or Colorado, story setting of Stargate, have a higher elevation?
Choices:
New Mexico
Alabama
New Jersey
Kansas
Hawaii
Iowa
Illinois
Colorado
Massachusetts
California
Answer: Colorado
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alabama" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Troy University" .   } UNION { ?e <pred:name> "Colorado" . ?e_2 <narrative_location> ?e . ?e_2 <pred:name> "Stargate" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Troy University
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Alabama
function: And
dependencies: 1
2
function: Find
inputs: Stargate
function: Relate
dependencies: 4
inputs: narrative location
forward
function: Find
inputs: Colorado
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: elevation above sea level
greater