Question: Which has greater elevation above sea level, Midland whose official website is http://www.midlandtexas.gov or Ypsilanti?
Choices:
Midland
Lansing
Greenville
Oakland
Ypsilanti
Franklin
Columbus
Compton
Boulder
New Haven
Answer: Midland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Midland" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.midlandtexas.gov" . } UNION { ?e <pred:name> "Ypsilanti" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Midland
function: FilterStr
dependencies: 0
inputs: official website
http://www.midlandtexas.gov
function: Find
inputs: Ypsilanti
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater