Question: Which one lies higher above sea level, Valencia (the one whose Dewey Decimal Classification is 2--46763) or Tbilisi ?
Choices:
Valencia
Chihuahua
Santo Domingo
Dundee
Kingston
Kilkenny
Abidjan
Bergen
Tbilisi
Trieste
Program:
function: Find
inputs: Valencia
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--46763
function: Find
inputs: Tbilisi
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Valencia" . ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--46763" . } UNION { ?e <pred:name> "Tbilisi" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tbilisi