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