Question: What is the correlation between Ghostbusters (that has Charles Dance as a cast member) and Australia (that has a citizen named Dannii Minogue)?
Choices: art director
dialect of
replaced by
participant of
place of publication
office held by head of the organisation
subject has role
member of sports team
cites
country of origin
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Ghostbusters" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Charles Dance" . ?e_2 <pred:name> "Australia" . ?e_4 <country_of_citizenship> ?e_2 . ?e_4 <pred:name> "Dannii Minogue" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Charles Dance
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Ghostbusters
function: And
dependencies: 1
2
function: Find
inputs: Dannii Minogue
function: Relate
dependencies: 4
inputs: country of citizenship
forward
function: Find
inputs: Australia
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: country of origin