Question: Which has more people, Mogadishu or Saint John (the one whose inception time is 1604)?
Choices: Abidjan
Santo Domingo
Kilkenny
Saint John
Bergen
Dundee
Kingston
Chihuahua
Trieste
Mogadishu
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mogadishu" . } UNION { ?e <pred:name> "Saint John" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1604 . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Mogadishu
function: Find
inputs: Saint John
function: FilterYear
dependencies: 1
inputs: inception
1604
=
function: SelectBetween
dependencies: 0
2
inputs: population
greater
Answer: Mogadishu