Question: What is the association football club whose country is the republic that has a diplomatic relation with Spain?
Choices:
Paris Saint-Germain F.C.
MSV Duisburg
Amazon
Olympique Lyonnais
A.J. Auxerre
Portmore United F.C.
Colombia
1. FC Union Berlin
Deportivo Cali
SSV Jahn Regensburg
Answer: Deportivo Cali
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "association football club" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "republic" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Spain" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Colombia–Spain relations" .   }
Program:
function: Find
inputs: Spain
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Colombia–Spain relations
function: FilterConcept
dependencies: 2
inputs: republic
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: association football club
function: What
dependencies: 5