Question: Who won the  Academy Award for Best Story for A Star Is Born (the one that was nominated for Academy Award for Best Director)?
Choices:
Gary Paczosa
Charles Vess
William A. Wellman
Richard Williams
Carl Foreman
Luis Guzmán
Gary Sinise
Eugenio Caballero
Bob Dylan
U2
Answer: William A. Wellman
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "A Star Is Born" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Director" . ?e_2 <pred:name> "Academy Award for Best Story" . ?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: Academy Award for Best Director
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: A Star Is Born
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Story
function: QueryRelationQualifier
dependencies: 3
4
inputs: award received
winner