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