Question: Does Gainesville or Portsmouth whose population is 20909 have less elevation above sea level?
Choices:
Oakland
Waukegan
Lansing
Franklin
Portsmouth
Columbus
Compton
Boulder
Greenville
Gainesville
Answer: Gainesville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gainesville" . } UNION { ?e <pred:name> "Portsmouth" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "20909"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Gainesville
function: Find
inputs: Portsmouth
function: FilterNum
dependencies: 1
inputs: population
20909
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less