Question: When Terms of Endearment was up for an Academy Award for Best Writing, Adapted Screenplay, who was the individual nominated?
Choices:
Penélope Cruz
James L. Brooks
Martin Scorsese
Chris Newman
Charlize Theron
Alex Rodríguez
John Gaeta
Willard Huyck
William Hornbeck
Peter Yates
Program:
function: Find
inputs: Terms of Endearment
function: Find
inputs: Academy Award for Best Writing, Adapted Screenplay
function: QueryRelationQualifier
dependencies: 0
1
inputs: nominated for
nominee
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Terms of Endearment" . ?e_2 <pred:name> "Academy Award for Best Writing, Adapted Screenplay" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <nominee> ?qpv .  }
Answer: James L. Brooks