Question: What is the topic of the statement that Azerbaijan shares a border with Georgia (that has a diplomatic relationship with Yemen)?
Choices: Azerbaijan–Georgia border
Malaysia–Turkmenistan relations
China–South Africa relations
India–Mauritius relations
Chile–United Kingdom relations
Israel–Sweden relations
Barbados–Nigeria relations
Andorra–Spain border
53rd Academy Awards
Belgium–Taiwan relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Azerbaijan" . ?e_2 <pred:name> "Georgia" . ?e_3 <diplomatic_relation> ?e_2 . ?e_3 <pred:name> "Yemen" . ?e_1 <shares_border_with> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: Azerbaijan
function: Find
inputs: Yemen
function: Relate
dependencies: 1
inputs: diplomatic relation
forward
function: Find
inputs: Georgia
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: shares border with
statement is subject of
Answer: Azerbaijan–Georgia border