Question: Which place has less elevation above sea level, Georgia (population 3943116) or Kentucky (the one that shares border with Missouri)?
Choices:
Florida
Georgia
Colorado
California
New Jersey
Massachusetts
Illinois
Hawaii
New Mexico
Kentucky
Answer: Georgia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Georgia" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3943116"^^xsd:double . } UNION { ?e <pred:name> "Kentucky" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Missouri" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Georgia
function: FilterNum
dependencies: 0
inputs: population
3943116
=
function: Find
inputs: Missouri
function: Relate
dependencies: 2
inputs: shares border with
forward
function: Find
inputs: Kentucky
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
less