Question: Are there less people living in Exeter (the one that is the origin of the name Exeter City F.C.) or Swansea?
Choices:
Kilkenny
Abidjan
Cork
Santo Domingo
Swansea
Bergen
Dundee
Exeter
Kingston
Trieste
Program:
function: Find
inputs: Exeter City F.C.
function: Relate
dependencies: 0
inputs: named after
forward
function: Find
inputs: Exeter
function: And
dependencies: 1
2
function: Find
inputs: Swansea
function: SelectBetween
dependencies: 3
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Exeter" . ?e_1 <named_after> ?e . ?e_1 <pred:name> "Exeter City F.C." .   } UNION { ?e <pred:name> "Swansea" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Exeter