Question: Graham Greene who is a cast member of Die Hard with a Vengeance was nominated for an Academy Award for Best Supporting Actor for which work?
Choices:
The Wings of the Dove
The Poseidon Adventure
Pepe
U Turn
Guys and Dolls
Transamerica
The Wedding Banquet
A Man for All Seasons
Dances with Wolves
El presente
Answer: Dances with Wolves
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Graham Greene" . ?e_3 <cast_member> ?e_1 . ?e_3 <pred:name> "Die Hard with a Vengeance" . ?e_2 <pred:name> "Academy Award for Best Supporting Actor" . ?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: Die Hard with a Vengeance
function: Relate
dependencies: 0
inputs: cast member
forward
function: Find
inputs: Graham Greene
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Supporting Actor
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
for work