Question: What is the subject of the statement that Bangladesh (that has a diplomatic relationship with Sierra Leone) has a diplomatic relationship with Gambia?
Choices:
Last Supper
United States–Zambia relations
Australia–Chile relations
Saudi Arabia–Tanzania relations
India–Morocco relations
Germany–Sierra Leone relations
Bangladesh–Gambia relations
Madagascar–North Korea relations
Japan–Ukraine relations
Poland–United Kingdom relations
Program:
function: Find
inputs: Sierra Leone
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: Find
inputs: Bangladesh
function: And
dependencies: 1
2
function: Find
inputs: Gambia
function: QueryRelationQualifier
dependencies: 3
4
inputs: diplomatic relation
statement is subject of
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Bangladesh" . ?e_3 <diplomatic_relation> ?e_1 . ?e_3 <pred:name> "Sierra Leone" . ?e_2 <pred:name> "Gambia" . ?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 .  }
Answer: Bangladesh–Gambia relations