Question: Who won an Academy Award for Best Original Score for The Right Stuff starring Barbara Hershey?
Choices:
Gene Ruggiero
Larry Doyle
Alexa Alemanni
Trefor Proud
Meryl Streep
Bill Conti
Konono Nº1
Ryuichi Sakamoto
Randall William Cook
Ben Affleck
Answer: Bill Conti
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Right Stuff" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Barbara Hershey" . ?e_2 <pred:name> "Academy Award for Best Original Score" . ?e_1 <award_received> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <award_received> ; <pred:fact_t> ?e_2 ] <winner> ?qpv .  }
Program:
function: Find
inputs: Barbara Hershey
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Right Stuff
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Original Score
function: QueryRelationQualifier
dependencies: 3
4
inputs: award received
winner