Question: Which has the lesser elevation above sea level, Texas (the one whose motto text is Friendship) or Michigan?
Choices: Texas
Michigan
New Jersey
New Mexico
Massachusetts
Iowa
Colorado
Illinois
California
Florida
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Texas" . ?e <motto_text> ?pv_1 . ?pv_1 <pred:value> "Friendship" . } UNION { ?e <pred:name> "Michigan" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Texas
function: FilterStr
dependencies: 0
inputs: motto text
Friendship
function: Find
inputs: Michigan
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
Answer: Michigan