Question: I'd like to know this statement's subject. Syria has a diplomatic relation with Bangladesh (the one with a diplomatic relation with Sierra Leone).
Choices:
European Union–Slovenia border
Djibouti–Somalia relations
China–Portugal relations
North Korea–Philippines relations
Cuba–Malaysia relations
66th Tony Awards
Bangladesh–Syria relations
26th Tony Awards
Czech Republic–Pakistan relations
Mauritania–Senegal relations
Answer: Bangladesh–Syria relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Syria" . ?e_2 <pred:name> "Bangladesh" . ?e_3 <diplomatic_relation> ?e_2 . ?e_3 <pred:name> "Sierra Leone" . ?e_1 <diplomatic_relation> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: Syria
function: Find
inputs: Sierra Leone
function: Relate
dependencies: 1
inputs: diplomatic relation
forward
function: Find
inputs: Bangladesh
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: diplomatic relation
statement is subject of