Question: What state in India is the home of the capital city where Santosh Sivan was born?
Choices:
Andhra Pradesh
Jharkhand
Maharashtra
Kerala
Bihar
Gujarat
Tamil Nadu
Haryana
Jammu and Kashmir
Karnataka
Program:
function: Find
inputs: Santosh Sivan
function: Relate
dependencies: 0
inputs: place of birth
forward
function: FilterConcept
dependencies: 1
inputs: city
function: Relate
dependencies: 2
inputs: capital
backward
function: FilterConcept
dependencies: 3
inputs: state of India
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" . ?e <capital> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Santosh Sivan" .   }
Answer: Kerala