Question: What's the place of diplomatic mission where Germany has a diplomatic relation with Uganda,
Choices:
Embassy of Germany, Wellington
Australian Consulate in Luanda, Angola
Embassy of Germany, Kampala
Embassy of Bangladesh, Stockholm
Embassy of Israel, Manila
Embassy of France, Berlin
Embassy of Germany, Tegucigalpa
Embassy of Israel, Paris
Embassy of Slovenia, Rome
Consulate-General of Japan in Barcelona
Answer: Embassy of Germany, Kampala
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Germany" . ?e_2 <pred:name> "Uganda" . ?e_1 <diplomatic_relation> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_2 ] <diplomatic_mission_sent> ?qpv .  }
Program:
function: Find
inputs: Germany
function: Find
inputs: Uganda
function: QueryRelationQualifier
dependencies: 0
1
inputs: diplomatic relation
diplomatic mission sent