Question: What is the subject of Heaven Can Wait (whose producer is Ernst Lubitsch) being nominated for an Academy Award for Best Picture?
Choices: Libya–Niger border
Belgium–Uruguay relations
16th Academy Awards
51st Tony Awards
Germany–Uruguay relations
Idaho–Montana border
North Korea–Norway relations
Bhutan–India border
Brazil–Cuba relations
Brazil–Philippines relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Heaven Can Wait" . ?e_1 <producer> ?e_3 . ?e_3 <pred:name> "Ernst Lubitsch" . ?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 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: Ernst Lubitsch
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Heaven Can Wait
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Picture
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
statement is subject of
Answer: 16th Academy Awards