Question: What is the play published before 1943 and that derives Hamlet which was nominated for an Academy Award for Best Original Score?
Choices:
South Pacific
The Phantom of the Opera
Oklahoma!
Aladdin
Romeo and Juliet
A Midsummer Night's Dream
Chicago
Coriolanus
Hamlet
Rent
Answer: Hamlet
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "play" . ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1943 ) . ?e_1 <based_on> ?e . ?e_1 <pred:name> "Hamlet" . ?e_1 <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Original Score" .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1943
<
function: FilterConcept
dependencies: 1
inputs: play
function: Find
inputs: Academy Award for Best Original Score
function: Relate
dependencies: 3
inputs: nominated for
backward
function: Find
inputs: Hamlet
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: based on
forward
function: FilterConcept
dependencies: 7
inputs: play
function: And
dependencies: 2
8
function: What
dependencies: 9