Question: Which area is smaller in size, Copenhagen or Moscow (the one whose population is 30000)?
Choices: New Delhi
Moscow
Copenhagen
Sarajevo
Paris
Mexico City
Lausanne
Riga
Tallinn
Doha
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Copenhagen" . } UNION { ?e <pred:name> "Moscow" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "30000"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Copenhagen
function: Find
inputs: Moscow
function: FilterNum
dependencies: 1
inputs: population
30000
=
function: SelectBetween
dependencies: 0
2
inputs: area
less
Answer: Moscow