Question: Does Exeter whose area is 27.3 square kilometers or Allahabad have the larger population?
Choices:
Kingston
Dundee
Bergen
Kilkenny
Trieste
Abidjan
Exeter
Allahabad
Santo Domingo
Cork
Answer: Allahabad
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Exeter" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "27.3"^^xsd:double . } UNION { ?e <pred:name> "Allahabad" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Exeter
function: FilterNum
dependencies: 0
inputs: area
27.3 square kilometre
=
function: Find
inputs: Allahabad
function: SelectBetween
dependencies: 1
2
inputs: population
greater