Question: What is the nominee of The Patriot (the one whose director is Ernst Lubitsch) that  was nominated for Academy Award for Best Production Design ?
Choices:
Lee Garmes
Albert Wolsky
Hans Dreier
Gwendolyn Yates Whittle
Mikhail Baryshnikov
Lance Anderson
Matt Dillon
Annette Bening
Gene Cantamessa
Don Zimmerman
Program:
function: Find
inputs: Ernst Lubitsch
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: The Patriot
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Production Design
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Patriot" . ?e_1 <director> ?e_3 . ?e_3 <pred:name> "Ernst Lubitsch" . ?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 .  }
Answer: Hans Dreier