Question: What city is where film director John Abraham died and is located in India, which has diplomatic ties to Seychelles?
Choices:
Coimbatore
Delhi
Kingston
Cork
Trieste
Kolkata
Mumbai
Kilkenny
Kozhikode
Chennai
Program:
function: Find
inputs: Seychelles
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: Find
inputs: India
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: city
function: Find
inputs: film director
function: Relate
dependencies: 6
inputs: occupation
backward
function: Find
inputs: John Abraham
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: place of death
forward
function: FilterConcept
dependencies: 10
inputs: city
function: And
dependencies: 5
11
function: What
dependencies: 12
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <country> ?e_1 . ?e_1 <pred:name> "India" . ?e_2 <diplomatic_relation> ?e_1 . ?e_2 <pred:name> "Seychelles" .  ?e_3 <place_of_death> ?e . ?e_3 <pred:name> "John Abraham" . ?e_3 <occupation> ?e_4 . ?e_4 <pred:name> "film director" .  }
Answer: Kozhikode