Question: Does Nicosia or Riga have the larger area?
Choices:
Nicosia
Lausanne
Riga
Manila
Paris
Doha
Tallinn
New Delhi
Moscow
Mexico City
Answer: Riga
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nicosia" .  } UNION { ?e <pred:name> "Riga" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Nicosia
function: Find
inputs: Riga
function: SelectBetween
dependencies: 0
1
inputs: area
greater