Question: Which one, Taunton (the one whose country is USA) or Portland (the one that is the residence of Gus Van Sant), has higher elevation (above sea level)?
Choices: Oakland
Waukegan
Taunton
Lansing
Compton
Portland
Columbus
New Haven
Boulder
Greenville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Taunton" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Portland" . ?e_2 <residence> ?e . ?e_2 <pred:name> "Gus Van Sant" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Taunton
function: And
dependencies: 1
2
function: Find
inputs: Gus Van Sant
function: Relate
dependencies: 4
inputs: residence
forward
function: Find
inputs: Portland
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: elevation above sea level
greater
Answer: Portland