Question: For the Independent Spirit Award for Best Female Lead, which work was awarded when Michelle Williams (the one that was nominated for the Academy Award for Best Supporting Actress), won?
Choices:
How Green Was My Valley
By the Time I Get to Phoenix
Pillow Talk
Casino
Damn Yankees
My Week with Marilyn
52nd Street
Monsters, Inc.
Ittefaq
My Left Foot
Answer: My Week with Marilyn
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Independent Spirit Award for Best Female Lead" . ?e_2 <pred:name> "Michelle Williams" . ?e_2 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Supporting Actress" . ?e_1 <winner> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <winner> ; <pred:fact_t> ?e_2 ] <for_work> ?qpv .  }
Program:
function: Find
inputs: Independent Spirit Award for Best Female Lead
function: Find
inputs: Academy Award for Best Supporting Actress
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: Michelle Williams
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: winner
for work