Question: Which has less elevation above sea level, Grand Forks or Charlotte that is the filming location of Homeland?
Choices:
Columbus
Charlotte
Compton
Grand Forks
Greenville
Lansing
Waukegan
Franklin
Oakland
Boulder
Program:
function: Find
inputs: Grand Forks
function: Find
inputs: Homeland
function: Relate
dependencies: 1
inputs: filming location
forward
function: Find
inputs: Charlotte
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Grand Forks" .  } UNION { ?e <pred:name> "Charlotte" . ?e_1 <filming_location> ?e . ?e_1 <pred:name> "Homeland" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Charlotte