Question: Between Karnataka or the Haryana bordering Delhi, which has more male inhabitants?
Choices: Odisha
Himachal Pradesh
West Bengal
Haryana
Gujarat
Punjab
Karnataka
Jharkhand
Kerala
Andhra Pradesh
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Karnataka" .  } UNION { ?e <pred:name> "Haryana" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Delhi" .   } ?e <male_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Karnataka
function: Find
inputs: Delhi
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Haryana
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: male population
greater
Answer: Karnataka