Question: Who was the nominee of Academy Award for Best Director for the work in Nashville (the one that has Keith Carradine as a cast member) ?
Choices:
Elisabeth Shue
Ulla-Britt Söderlund
Melchior Lengyel
Gordon Willis
Martin Samuel
Erich von Stroheim
James Corcoran
Conor O'Sullivan
Marjane Satrapi
Robert Altman
Answer: Robert Altman
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Nashville" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Keith Carradine" . ?e_2 <pred:name> "Academy Award for Best Director" . ?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: Keith Carradine
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Nashville
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Director
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee