Question: Jim Sheridan who is the screenwriter of In the Name of the Father was nominated for an Academy Award for Best Picture for which work?
Choices:
The Sin of Madelon Claudet
In the Name of the Father
The Witches of Eastwick
Audrey Hepburn's Enchanted Tales
Will & Grace
Loud
Dead Poets Society
The Man in the Glass Booth
Cry Freedom
Pete 'n' Tillie
Answer: In the Name of the Father
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Jim Sheridan" . ?e_3 <screenwriter> ?e_1 . ?e_3 <pred:name> "In the Name of the Father" . ?e_2 <pred:name> "Academy Award for Best Picture" . ?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: In the Name of the Father
function: Relate
dependencies: 0
inputs: screenwriter
forward
function: Find
inputs: Jim Sheridan
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Picture
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
for work