Question: Which has lower elevation above sea level, Alaska (the one whose motto text is North to the Future) or Hawaii (the one whose FIPS 10-4 (countries and regions) is US15)?
Choices:
Illinois
New Mexico
Florida
Hawaii
Alaska
Iowa
Colorado
California
Massachusetts
New Jersey
Answer: Alaska
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alaska" . ?e <motto_text> ?pv_1 . ?pv_1 <pred:value> "North to the Future" . } UNION { ?e <pred:name> "Hawaii" . ?e <FIPS_10-4_(countries_and_regions)> ?pv_2 . ?pv_2 <pred:value> "US15" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Alaska
function: FilterStr
dependencies: 0
inputs: motto text
North to the Future
function: Find
inputs: Hawaii
function: FilterStr
dependencies: 2
inputs: FIPS 10-4 (countries and regions)
US15
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less