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