Question: Louise Fletcher is cast as which character on One Flew Over the Cuckoo's Nest, composed by Jack Nitzsche?
Choices:
The Smoking Man
Harry Dunne
Robert F. Kennedy
Veronica Cale
Samuel Gerard
Lucius Fox
Shelby Forthright
Onus
Nurse Ratched
Horace Slughorn
Answer: Nurse Ratched
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "One Flew Over the Cuckoo's Nest" . ?e_1 <composer> ?e_3 . ?e_3 <pred:name> "Jack Nitzsche" . ?e_2 <pred:name> "Louise Fletcher" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: Jack Nitzsche
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: One Flew Over the Cuckoo's Nest
function: And
dependencies: 1
2
function: Find
inputs: Louise Fletcher
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role