Question: What is the subject of a statement saying Cuba (the one that has a diplomatic relation with Soviet Union) has a diplomatic relation with Solomon Islands?
Choices: Cuba–Solomon Islands relations
Greece–Poland relations
Lesotho–Russia relations
East Germany–Pakistan relations
Indonesia–Laos relations
Delaware–Pennsylvania border
Bangladesh–Myanmar border
Germany–Qatar relations
Iran–Serbia relations
Øresund
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Cuba" . ?e_3 <diplomatic_relation> ?e_1 . ?e_3 <pred:name> "Soviet Union" . ?e_2 <pred:name> "Solomon Islands" . ?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: Soviet Union
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: Find
inputs: Cuba
function: And
dependencies: 1
2
function: Find
inputs: Solomon Islands
function: QueryRelationQualifier
dependencies: 3
4
inputs: diplomatic relation
statement is subject of
Answer: Cuba–Solomon Islands relations