Question: Does Florida or Kentucky (ISO 3166-2 code US-KY) have a lower elevation relative to sea level?
Choices:
Iowa
Kansas
Illinois
Florida
New Mexico
Kentucky
New Jersey
Massachusetts
California
Colorado
Answer: Florida
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Florida" . } UNION { ?e <pred:name> "Kentucky" . ?e <ISO_3166-2_code> ?pv_1 . ?pv_1 <pred:value> "US-KY" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Florida
function: Find
inputs: Kentucky
function: FilterStr
dependencies: 1
inputs: ISO 3166-2 code
US-KY
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less