Question: For which work did John Irving (who was educated at the University of New Hampshire) receive an Academy Award for Best Writing, Adapted Screenplay?
Choices:
Pieces of April
Ali
Elmer Gantry
The Cider House Rules
Voyager
The End of the Affair
Fellini's Casanova
60 Minutes
The Telling
My Man Godfrey
Answer: The Cider House Rules
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "John Irving" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "University of New Hampshire" . ?e_2 <pred:name> "Academy Award for Best Writing, Adapted Screenplay" . ?e_1 <award_received> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <award_received> ; <pred:fact_t> ?e_2 ] <for_work> ?qpv .  }
Program:
function: Find
inputs: University of New Hampshire
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Irving
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Writing, Adapted Screenplay
function: QueryRelationQualifier
dependencies: 3
4
inputs: award received
for work