Question: Does Galveston or Atlanta (that is the headquarters location of the Cartoon Network) have the higher elevation above sea level?
Choices:
Greenville
Compton
Columbus
Waukegan
Oakland
New Haven
Boulder
Atlanta
Galveston
Lansing
Program:
function: Find
inputs: Galveston
function: Find
inputs: Cartoon Network
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Atlanta
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Galveston" .  } UNION { ?e <pred:name> "Atlanta" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Cartoon Network" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Atlanta