Question: For which work did Richard Rodgers (whose Libris-URI is zw9cdfzh12rd54w) win an Academy Award for Best Original Song?
Choices:
Night Court
Song of Kali
Alice Doesn't Live Here Anymore
Pat and Mike
Almost Famous
A Simple Plan
Kick-Ass
Vertigo
The New Spirit
It Might as Well Be Spring
Answer: It Might as Well Be Spring
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Academy Award for Best Original Song" . ?e_2 <pred:name> "Richard Rodgers" . ?e_2 <Libris-URI> ?pv . ?pv <pred:value> "zw9cdfzh12rd54w" . ?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: Academy Award for Best Original Song
function: Find
inputs: Richard Rodgers
function: FilterStr
dependencies: 1
inputs: Libris-URI
zw9cdfzh12rd54w
function: QueryRelationQualifier
dependencies: 0
2
inputs: winner
for work