Question: Which is more populous, Rajasthan which is the birth place of Omshivapuri or  Andhra Pradesh sharing border with Karnataka?
Choices:
West Bengal
Andhra Pradesh
Karnataka
Punjab
Himachal Pradesh
Odisha
Jharkhand
Rajasthan
Kerala
Haryana
Answer: Andhra Pradesh
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rajasthan" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Om Shivpuri" .   } UNION { ?e <pred:name> "Andhra Pradesh" . ?e_2 <shares_border_with> ?e . ?e_2 <pred:name> "Karnataka" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Om Shivpuri
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Rajasthan
function: And
dependencies: 1
2
function: Find
inputs: Karnataka
function: Relate
dependencies: 4
inputs: shares border with
forward
function: Find
inputs: Andhra Pradesh
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: population
greater