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