Question: Which one, Fort Wayne or Mobile (the one that is the capital of Mobile County), has less elevation (above sea level)?
Choices:
Franklin
Fort Wayne
Mobile
Boulder
Compton
Lansing
Waukegan
New Haven
Oakland
Greenville
Program:
function: Find
inputs: Fort Wayne
function: Find
inputs: Mobile County
function: Relate
dependencies: 1
inputs: capital
forward
function: Find
inputs: Mobile
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fort Wayne" .  } UNION { ?e <pred:name> "Mobile" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Mobile County" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mobile