Question: What is the diplomatic relationship between Egypt, demonym  єгиптянин, and Bulgaria?
Choices:
E pluribus unum
Belgium–Germany relations
Republic of Macedonia–Russia relations
Haiti–Israel relations
Russia and the Council of Europe
Denmark–Thailand relations
Kosovo–Poland relations
Bulgaria–Egypt relations
Germany–United States relations
India–Tanzania relations
Answer: Bulgaria–Egypt relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Egypt" . ?e_1 <demonym> ?pv . ?pv <pred:value> "єгиптянин" . ?e_2 <pred:name> "Bulgaria" . ?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: Egypt
function: FilterStr
dependencies: 0
inputs: demonym
єгиптянин
function: Find
inputs: Bulgaria
function: QueryRelationQualifier
dependencies: 1
2
inputs: diplomatic relation
statement is subject of