Question: Which work is Peter Crushing, the performer in Sherlock Holmes (the one that has Peter Cushing as a performer), present in ?
Choices: The Case of the Whitechapel Vampire
The Hound of the Baskervilles
Mr. Holmes
Sherlock Holmes: A Game of Shadows
Elementary
Sherlock Holmes
If 6 Was 9
The Royal Scandal
The Iron Lady
Incident at Victoria Falls
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Sherlock Holmes" . ?e_1 <performer> ?e_3 . ?e_3 <pred:name> "Peter Cushing" . ?e_2 <pred:name> "Peter Cushing" . ?e_1 <performer> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <performer> ; <pred:fact_t> ?e_2 ] <present_in_work> ?qpv .  }
Program:
function: Find
inputs: Peter Cushing
function: Relate
dependencies: 0
inputs: performer
backward
function: Find
inputs: Sherlock Holmes
function: And
dependencies: 1
2
function: Find
inputs: Peter Cushing
function: QueryRelationQualifier
dependencies: 3
4
inputs: performer
present in work
Answer: The Hound of the Baskervilles