Question: What diplomatic relationship exists between the Bahamas that border the USA, and the People's Republic of China?
Choices: Indonesia–Kenya relations
Lebanon–Russia relations
Cyprus–Norway relations
Senegal–United States relations
Cambodia–Vietnam relations
South Korea–Vietnam relations
Mali–United States relations
Bahamas–China relations
Laos–Taiwan relations
Finland–Germany relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Bahamas" . ?e_3 <shares_border_with> ?e_1 . ?e_3 <pred:name> "United States of America" . ?e_2 <pred:name> "People's Republic of China" . ?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: United States of America
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Bahamas
function: And
dependencies: 1
2
function: Find
inputs: People's Republic of China
function: QueryRelationQualifier
dependencies: 3
4
inputs: diplomatic relation
statement is subject of
Answer: Bahamas–China relations