Question: For which work was John Houseman (the one that was nominated for Academy Award for Best Picture) awarded the Academy Award for Best Supporting Actor?
Choices:
Casablanca
Quartet
The Day of the Dolphin
Jean de Florette
The Paper Chase
Vs.
Saturday Night Fever
In the Mood for Love
That's My Boy
The Glass Menagerie
Answer: The Paper Chase
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "John Houseman" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Picture" . ?e_2 <pred:name> "Academy Award for Best Supporting Actor" . ?e_1 <award_received> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <award_received> ; <pred:fact_t> ?e_2 ] <for_work> ?qpv .  }
Program:
function: Find
inputs: Academy Award for Best Picture
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: John Houseman
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Supporting Actor
function: QueryRelationQualifier
dependencies: 3
4
inputs: award received
for work