Question: Which work is awarded an Academy Award for Best Writing, Original Screenplay for which Norman Lear was a nominee?
Choices:
Valentine's Day
Old Habits Die Hard
The Pink Phink
Ittefaq
Meet the Fockers
Divorce American Style
The World According to Garp
Unforgettable... with Love
Lethal Weapon 3
E.T. the Extra-Terrestrial
Answer: Divorce American Style
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Norman Lear" . ?e_2 <pred:name> "Academy Award for Best Writing, Original Screenplay" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <for_work> ?qpv .  }
Program:
function: Find
inputs: Norman Lear
function: Find
inputs: Academy Award for Best Writing, Original Screenplay
function: QueryRelationQualifier
dependencies: 0
1
inputs: nominated for
for work