Question: Which area is smaller, Lisbon (the one whose population is 506892) or Riyadh?
Choices:
New Delhi
Lausanne
Lisbon
Manila
Riyadh
Mexico City
Doha
Sarajevo
Tallinn
Riga
Program:
function: Find
inputs: Lisbon
function: FilterNum
dependencies: 0
inputs: population
506892
=
function: Find
inputs: Riyadh
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lisbon" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "506892"^^xsd:double . } UNION { ?e <pred:name> "Riyadh" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lisbon