Question: For Peru, what is the subject of this statement that it has a diplomatic relationship with Spain?
Choices: Portugal–United Kingdom relations
Taiwan–Togo relations
Pakistan–Belarus relations
Bhutan–Denmark relations
Czechoslovakia
New Zealand–United States relations
Ukraine–Vietnam relations
Gibraltarian people
Peru–Spain relations
Cyprus–United Kingdom relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Peru" . ?e_2 <pred:name> "Spain" . ?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: Peru
function: Find
inputs: Spain
function: QueryRelationQualifier
dependencies: 0
1
inputs: diplomatic relation
statement is subject of
Answer: Peru–Spain relations