Question: Oscar Hammerstein II won an Academy Award for Best Original Song for which work?
Choices:
Spider-Man 2
Roots: The Next Generations
Phrenology
Saving Mr. Banks
Ran
The Last Time I Saw Paris
The Nutty Professor
The Poorhouse Fair
All Clear
Naked
Answer: The Last Time I Saw Paris
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Academy Award for Best Original Song" . ?e_2 <pred:name> "Oscar Hammerstein II" . ?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: Oscar Hammerstein II
function: QueryRelationQualifier
dependencies: 0
1
inputs: winner
for work