Question: Jimi Hendrix (the one that is famous for harpsichord), also plays kazoo; which work is he present in?
Choices:
Mr. Holmes
If 6 Was 9
The Royal Scandal
Crosstown Traffic
The Sign of Four
Sherlock Holmes: A Game of Shadows
Incident at Victoria Falls
Sherlock Holmes and the Deadly Necklace
The Case of the Whitechapel Vampire
The Hound of the Baskervilles
Program:
function: Find
inputs: harpsichord
function: Relate
dependencies: 0
inputs: famous people
forward
function: Find
inputs: Jimi Hendrix
function: And
dependencies: 1
2
function: Find
inputs: kazoo
function: QueryRelationQualifier
dependencies: 3
4
inputs: instrument
present in work
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Jimi Hendrix" . ?e_3 <famous_people> ?e_1 . ?e_3 <pred:name> "harpsichord" . ?e_2 <pred:name> "kazoo" . ?e_1 <instrument> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <instrument> ; <pred:fact_t> ?e_2 ] <present_in_work> ?qpv .  }
Answer: Crosstown Traffic