Question: Ben Johnson who stars in The Last Picture Show won a BAFTA Award for Best Actor in a Supporting Role for which work?
Choices:
The Iceman Cometh
The Wanderer
Burnt Offerings
The Big Country
In Bruges
Mortal Thoughts
The Last Picture Show
Purple Rain
Inside Out
The Sky's the Limit
Answer: The Last Picture Show
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "BAFTA Award for Best Actor in a Supporting Role" . ?e_2 <pred:name> "Ben Johnson" . ?e_3 <cast_member> ?e_2 . ?e_3 <pred:name> "The Last Picture Show" . ?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: BAFTA Award for Best Actor in a Supporting Role
function: Find
inputs: The Last Picture Show
function: Relate
dependencies: 1
inputs: cast member
forward
function: Find
inputs: Ben Johnson
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: winner
for work