Question: Who is the nominee for Working Girl (the one that is designed by Patrizia von Brandenstein) which was nominated for Academy Award for Best Picture?
Choices:
Anne Revere
Kent Houston
Terence McCloy
Karel Černý
Deb Adair
James Wong Howe
Douglas Wick
Dustin Lance Black
Douglas McGrath
Doug Mitchell
Answer: Douglas Wick
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Working Girl" . ?e_1 <production_designer> ?e_3 . ?e_3 <pred:name> "Patrizia von Brandenstein" . ?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 ] <nominee> ?qpv .  }
Program:
function: Find
inputs: Patrizia von Brandenstein
function: Relate
dependencies: 0
inputs: production designer
backward
function: Find
inputs: Working Girl
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Picture
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee