Question: Which has less female population, Chandigarh or New Delhi where Raj Kapoor died?
Choices:
New Delhi
Tallinn
Paris
Lausanne
Sarajevo
Doha
Riga
Mexico City
Moscow
Manila
Program:
function: Find
inputs: Chandigarh
function: Find
inputs: Raj Kapoor
function: Relate
dependencies: 1
inputs: place of death
forward
function: Find
inputs: New Delhi
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: female population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chandigarh" .  } UNION { ?e <pred:name> "New Delhi" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Raj Kapoor" .   } ?e <female_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: New Delhi