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