Question: What visual artwork is filmed in the sovereign state that has Congo–Democratic Republic of the Congo diplomatic relations with the Republic of the Congo (that shares s border with Angola)?
Choices:
The Jackal
Napoleon
Dredd
A Prairie Home Companion
Solaris
The 40-Year-Old Virgin
The African Queen
24: Redemption
Samson and Delilah
Rebecca
Program:
function: Find
inputs: Angola
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Republic of the Congo
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: diplomatic relation
forward
function: QFilterStr
dependencies: 4
inputs: statement is subject of
Republic of the Congo–Democratic Republic of the Congo relations
function: FilterConcept
dependencies: 5
inputs: sovereign state
function: Relate
dependencies: 6
inputs: filming location
backward
function: FilterConcept
dependencies: 7
inputs: visual artwork
function: What
dependencies: 8
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <filming_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <diplomatic_relation> ?e_1 . ?e_2 <pred:name> "Republic of the Congo" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "Angola" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Republic of the Congo–Democratic Republic of the Congo relations" .   }
Answer: The African Queen