Question: Which civil war is the representative of Hezbollah and is located in Lebanon (which has a diplomatic relation with Armenia)?
Choices:
Coalition Wars
Russian Civil War
American Civil War
French invasion of Russia
Yom Kippur War
Lebanese Civil War
First Crusade
Chinese Civil War
2011 Libyan Civil War
Crusade
Answer: Lebanese Civil War
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "civil war" . ?e_1 <conflict> ?e . ?e_1 <pred:name> "Hezbollah" .  ?e <location> ?e_2 . ?e_2 <pred:name> "Lebanon" . ?e_3 <diplomatic_relation> ?e_2 . ?e_3 <pred:name> "Armenia" .  }
Program:
function: Find
inputs: Hezbollah
function: Relate
dependencies: 0
inputs: conflict
forward
function: FilterConcept
dependencies: 1
inputs: civil war
function: Find
inputs: Armenia
function: Relate
dependencies: 3
inputs: diplomatic relation
forward
function: Find
inputs: Lebanon
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: location
backward
function: FilterConcept
dependencies: 7
inputs: civil war
function: And
dependencies: 2
8
function: What
dependencies: 9