Question: Who was the Academy Award for Best Original Score nominee for Star Wars Episode V: The Empire Strikes Back (the one that follows The Star Wars Holiday Special)?
Choices:
John Williams
Lee J. Cobb
Andrew Kosove
Herman A. Blumenthal
Nick Allder
Byron Howard
David M. Ronne
Robert Benmussa
Armin Mueller-Stahl
Larry Stensvold
Answer: John Williams
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Star Wars Episode V: The Empire Strikes Back" . ?e_3 <followed_by> ?e_1 . ?e_3 <pred:name> "The Star Wars Holiday Special" . ?e_2 <pred:name> "Academy Award for Best Original Score" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <nominee> ?qpv .  }
Program:
function: Find
inputs: The Star Wars Holiday Special
function: Relate
dependencies: 0
inputs: followed by
forward
function: Find
inputs: Star Wars Episode V: The Empire Strikes Back
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Original Score
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee