Question: Of capitals in India, the country of citizenship of Dharmendra, which is lowest in elevation?
Choices:
Bangalore
Lucknow
Jaipur
Moscow
Sarajevo
Doha
Bhopal
Chandigarh
New Delhi
Mexico City
Program:
function: Find
inputs: Dharmendra
function: Relate
dependencies: 0
inputs: country of citizenship
forward
function: Find
inputs: India
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: capital
function: SelectAmong
dependencies: 5
inputs: elevation above sea level
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" . ?e <country> ?e_1 . ?e_1 <pred:name> "India" . ?e_2 <country_of_citizenship> ?e_1 . ?e_2 <pred:name> "Dharmendra" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lucknow