Question: What is the location of a diplomatic mission of Australia (with the history of military conflicts with Germany), that has a diplomatic relation with Botswana ?
Choices: Embassy of Ukraine, Singapore
Australian Consulate in Gaborone, Botswana
Embassy of Ukraine, Astana
Embassy of Poland, Tel Aviv
Embassy of Brazil, Asunción
Embassy of Saudi Arabia, Kiev
Embassy of Sweden, Tel Aviv
Embassy of Spain, Berlin
Embassy of Germany, Tokyo
Embassy of Brazil, Berlin
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Australia" . ?e_3 <military_conflicts> ?e_1 . ?e_3 <pred:name> "Germany" . ?e_2 <pred:name> "Botswana" . ?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: Relate
dependencies: 0
inputs: military conflicts
forward
function: Find
inputs: Australia
function: And
dependencies: 1
2
function: Find
inputs: Botswana
function: QueryRelationQualifier
dependencies: 3
4
inputs: diplomatic relation
diplomatic mission sent
Answer: Australian Consulate in Gaborone, Botswana