Question: Does Savannah (population 137812) or Springfield (birthplace of Justin Chambers) have the higher elevation?
Choices:
Boulder
Columbus
Greenville
Oakland
Franklin
Compton
Savannah
Lansing
New Haven
Springfield
Answer: Springfield
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Savannah" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "137812"^^xsd:double . } UNION { ?e <pred:name> "Springfield" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Justin Chambers" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Savannah
function: FilterNum
dependencies: 0
inputs: population
137812
=
function: Find
inputs: Justin Chambers
function: Relate
dependencies: 2
inputs: place of birth
forward
function: Find
inputs: Springfield
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
greater