Question: Which has fewer people, Winchester (the one that contains Winchester College) or Colombo?
Choices:
Kilkenny
Trieste
Santo Domingo
Kingston
Colombo
Bergen
Winchester
Dundee
Abidjan
Chihuahua
Program:
function: Find
inputs: Winchester College
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Winchester
function: And
dependencies: 1
2
function: Find
inputs: Colombo
function: SelectBetween
dependencies: 3
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Winchester" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Winchester College" .   } UNION { ?e <pred:name> "Colombo" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Winchester