Question: Which has more population, Kolkata or Dakar that is the twinned administrative body of Isfahan?
Choices:
Cork
Chihuahua
Dundee
Kilkenny
Bergen
Abidjan
Trieste
Kolkata
Santo Domingo
Kingston
Program:
function: Find
inputs: Kolkata
function: Find
inputs: Isfahan
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Dakar
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kolkata" .  } UNION { ?e <pred:name> "Dakar" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Isfahan" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kolkata