Question: Tell me the war that has India as a participant (the one that has diplomatic relationship with European Union)
Choices:
War on Terror
Yom Kippur War
Second Sino-Japanese War
French invasion of Russia
Crusade
Second Crusade
War in North-West Pakistan
First Crusade
Indo-Pakistani War of 1971
Coalition Wars
Answer: Indo-Pakistani War of 1971
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "war" . ?e <participant> ?e_1 . ?e_1 <pred:name> "India" . ?e_2 <diplomatic_relation> ?e_1 . ?e_2 <pred:name> "European Union" .   }
Program:
function: Find
inputs: European Union
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: Find
inputs: India
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: participant
backward
function: FilterConcept
dependencies: 4
inputs: war
function: What
dependencies: 5