Question: What is the subject of the statement of Spain has a diplomatic relation with Malaysia?
Choices:
Saudi Arabia–Tanzania relations
Malaysia–Spain relations
Taiwan–United Kingdom relations
Idaho–Washington border
Canada–Democratic Republic of the Congo relations
Nigeria–Russia relations
New Zealand–Pakistan relations
Algeria–France relations
Democratic Republic of the Congo–Uganda border
Australia–European Union relations
Answer: Malaysia–Spain relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Spain" . ?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: Spain
function: Find
inputs: Malaysia
function: QueryRelationQualifier
dependencies: 0
1
inputs: diplomatic relation
statement is subject of