Question: What is the connection between Tunisia to Morocco (the one that has a diplomatic relation with Canada)?
Choices:
honorific suffix
named after
diplomatic relation
has dialect (DEPRECATED)
filmography
history of topic
position held
official color
basin country
given name
Program:
function: Find
inputs: Tunisia
function: Find
inputs: Canada
function: Relate
dependencies: 1
inputs: diplomatic relation
forward
function: Find
inputs: Morocco
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tunisia" . ?e_2 <pred:name> "Morocco" . ?e_3 <diplomatic_relation> ?e_2 . ?e_3 <pred:name> "Canada" . ?e_1 ?p ?e_2 .  }
Answer: diplomatic relation