Question: What is the relationship between Armenia and Cyprus (the one that has a diplomatic relation with Taiwan)?
Choices: student
member of political party
appears in the form of
narrator
located in the administrative territorial entity
public holiday
place of birth
writing system
art director
diplomatic relation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Armenia" . ?e_2 <pred:name> "Cyprus" . ?e_3 <diplomatic_relation> ?e_2 . ?e_3 <pred:name> "Taiwan" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Armenia
function: Find
inputs: Taiwan
function: Relate
dependencies: 1
inputs: diplomatic relation
forward
function: Find
inputs: Cyprus
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: diplomatic relation