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