Question: Which person was born in the capital of Jammu and Kashmir?
Choices:
Julia Stiles
Jill Scott
Douglas Adams
Joanna Lumley
Sanjay Dutt
Pritam Chakraborty
Ronnie Wood
Andre Braugher
Michael Douglas
Jeremy Piven
Program:
function: Find
inputs: Jammu and Kashmir
function: Relate
dependencies: 0
inputs: capital of
backward
function: FilterConcept
dependencies: 1
inputs: city
function: Relate
dependencies: 2
inputs: place of birth
backward
function: FilterConcept
dependencies: 3
inputs: human
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_1 <capital_of> ?e_2 . ?e_2 <pred:name> "Jammu and Kashmir" .   }
Answer: Joanna Lumley