Question: What is the subject of the statement that Ethiopia has a diplomatic relationship with Ireland (that is the origin country of Twelfth Night: Or What You Will)?
Choices: Austria–Canada relations
Colombia–Nicaragua border
23rd British Academy Film Awards
Italy–Monaco relations
Chile–Peru border
China–Tajikistan border
Ethiopia–Ireland relations
France–Greece relations
Benin–Denmark relations
Ukraine–United Kingdom relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Ethiopia" . ?e_2 <pred:name> "Ireland" . ?e_3 <country_of_origin> ?e_2 . ?e_3 <pred:name> "Twelfth Night: Or What You Will" . ?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: Ethiopia
function: Find
inputs: Twelfth Night: Or What You Will
function: Relate
dependencies: 1
inputs: country of origin
forward
function: Find
inputs: Ireland
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: diplomatic relation
statement is subject of
Answer: Ethiopia–Ireland relations