Question: Does Kingston (the one that is the twinned administrative body of Kalamazoo) or Mangalore have less population?
Choices:
Bergen
Santo Domingo
Cork
Chihuahua
Dundee
Abidjan
Mangalore
Kilkenny
Trieste
Kingston
Program:
function: Find
inputs: Kalamazoo
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: Find
inputs: Kingston
function: And
dependencies: 1
2
function: Find
inputs: Mangalore
function: SelectBetween
dependencies: 3
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kingston" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Kalamazoo" .   } UNION { ?e <pred:name> "Mangalore" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kingston