Question: Does West Virginia or Mississippi (that is headed by a Secretary of State) have the higher elevation above sea level?
Choices:
West Virginia
Iowa
Colorado
Florida
New Jersey
Illinois
Massachusetts
New Mexico
Hawaii
Mississippi
Answer: West Virginia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "West Virginia" .  } UNION { ?e <pred:name> "Mississippi" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "Secretary of State" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: West Virginia
function: Find
inputs: Secretary of State
function: Relate
dependencies: 1
inputs: office held by head of government
backward
function: Find
inputs: Mississippi
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater