Question: What is the connection between Iraq to Cuba (the one that has a diplomatic relation with Soviet Union)?
Choices:
connects with
producer
distribution
illustrator
drafted by
diplomatic relation
location of formation
commander of
distributor
spouse
Answer: diplomatic relation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Iraq" . ?e_2 <pred:name> "Cuba" . ?e_2 <diplomatic_relation> ?e_3 . ?e_3 <pred:name> "Soviet Union" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Iraq
function: Find
inputs: Soviet Union
function: Relate
dependencies: 1
inputs: diplomatic relation
backward
function: Find
inputs: Cuba
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4