Question: Which has a larger male population, Lucknow or New Delhi (the one that is the death place of Raj Kapoor)?
Choices: Manila
Lucknow
Riga
Lausanne
Paris
Sarajevo
Tallinn
Doha
New Delhi
Moscow
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lucknow" .  } UNION { ?e <pred:name> "New Delhi" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Raj Kapoor" .   } ?e <male_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lucknow
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: male population
greater
Answer: Lucknow