Question: What is the subject of this statement: Algeria has a diplomatic relation with Malaysia?
Choices:
Poland–United States relations
Colorado–New Mexico border
United States–European Union relations
India–Lebanon relations
Germany–Kazakhstan relations
Barbados–United States relations
China–Mexico relations
Algeria–Malaysia relations
Canada–Democratic Republic of the Congo relations
Madagascar–North Korea relations
Answer: Algeria–Malaysia relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Algeria" . ?e_2 <pred:name> "Malaysia" . ?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: Algeria
function: Find
inputs: Malaysia
function: QueryRelationQualifier
dependencies: 0
1
inputs: diplomatic relation
statement is subject of