Question: What is the relationship between Portugal to Bangladesh (the one that has a diplomatic relation with Croatia)?
Choices:
has quality
location of discovery
official religion
dialect of
diplomatic relation
sidekick of
professorship
candidate
located on astronomical location
territory claimed by
Program:
function: Find
inputs: Portugal
function: Find
inputs: Croatia
function: Relate
dependencies: 1
inputs: diplomatic relation
backward
function: Find
inputs: Bangladesh
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Portugal" . ?e_2 <pred:name> "Bangladesh" . ?e_2 <diplomatic_relation> ?e_3 . ?e_3 <pred:name> "Croatia" . ?e_1 ?p ?e_2 .  }
Answer: diplomatic relation