Question: The Academy Award for Best Original Song went to which work by Richard Rodgers, whose genre is musicals?
Choices: Apollo 13
It Might as Well Be Spring
The Great Lie
Fermi and Frost
Spartacus
Behold the Man
Cat Ballou
Cocoon
Anomalisa
Ray
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Academy Award for Best Original Song" . ?e_2 <pred:name> "Richard Rodgers" . ?e_2 <genre> ?e_3 . ?e_3 <pred:name> "musical" . ?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: musical
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Richard Rodgers
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: winner
for work
Answer: It Might as Well Be Spring