Question: Who is the nominee receiving Academy Award for Best actor for the work in Salvador (with James Woods as the cast member ) ?
Choices:
Tom Schulman
David Lynch
Peter Owen
Jane Scott
Alec Guinness
Paul Hamblin
John M. Elliott, Jr.
Dick Richards
Jeff Wexler
James Woods
Answer: James Woods
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Salvador" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "James Woods" . ?e_2 <pred:name> "Academy Award for Best Actor" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <nominee> ?qpv .  }
Program:
function: Find
inputs: James Woods
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Salvador
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Actor
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee