Question: What war has the participant Hannibal who died from suicide?
Choices:
French invasion of Russia
Second Sino-Japanese War
Crusade
Second Boer War
Lebanese Civil War
Peninsular War
Coalition Wars
Second Punic War
Yom Kippur War
German-Soviet War
Program:
function: Find
inputs: suicide
function: Relate
dependencies: 0
inputs: manner of death
backward
function: Find
inputs: Hannibal
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: participant
backward
function: FilterConcept
dependencies: 4
inputs: war
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "war" . ?e <participant> ?e_1 . ?e_1 <pred:name> "Hannibal" . ?e_1 <manner_of_death> ?e_2 . ?e_2 <pred:name> "suicide" .   }
Answer: Second Punic War