Question: Who was nominated for an Academy Award for Best Production Design for Morocco which was nominated for an Academy Award for Best Actress?
Choices:
Peter Firth
Paul N. J. Ottosson
Hans Dreier
William Steinkamp
Mikhail Baryshnikov
Julie Walters
Charles McKeown
William Monahan
Ian McLellan Hunter
Joe Viskocil
Answer: Hans Dreier
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Morocco" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Actress" . ?e_2 <pred:name> "Academy Award for Best Production Design" . ?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: Academy Award for Best Actress
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Morocco
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Production Design
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee