Question: Which psychosis is a kind of health specialty of the medicine that is the main subject of One Flew Over the Cuckoo's Nest (which is in the prison film genre)?
Choices:
post-traumatic stress disorder
gastroesophageal reflux disease
mental disorder
prostate cancer
attention deficit hyperactivity disorder
major depressive disorder
schizophrenia
bipolar disorder
epilepsy
classic autism
Answer: schizophrenia
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "psychosis" . ?e <health_specialty> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "medicine" . ?e_2 <main_subject> ?e_1 . ?e_2 <pred:name> "One Flew Over the Cuckoo's Nest" . ?e_2 <genre> ?e_3 . ?e_3 <pred:name> "prison film" .   }
Program:
function: Find
inputs: prison film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: One Flew Over the Cuckoo's Nest
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: main subject
forward
function: FilterConcept
dependencies: 4
inputs: medicine
function: Relate
dependencies: 5
inputs: health specialty
backward
function: FilterConcept
dependencies: 6
inputs: psychosis
function: What
dependencies: 7