Question: What is the subject of 'diplomatic relation' statement in ' Cyprus (the one whose demonym is cipriota) has a diplomatic relation with Algeria '?
Choices: Japan–North Korea relations
Georgia–Italy relations
Pakistan–South Africa relations
Algeria–Cyprus relations
Poland–Slovakia border
Greece–Russia relations
Guatemala–Honduras border
Australia–Bangladesh relations
Lithuania–Poland relations
Kiribati–Spain relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Cyprus" . ?e_1 <demonym> ?pv . ?pv <pred:value> "cipriota" . ?e_2 <pred:name> "Algeria" . ?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: Cyprus
function: FilterStr
dependencies: 0
inputs: demonym
cipriota
function: Find
inputs: Algeria
function: QueryRelationQualifier
dependencies: 1
2
inputs: diplomatic relation
statement is subject of
Answer: Algeria–Cyprus relations