Question: Tell me the movie that was written by Jean Cocteau and that is in the drama film genre.
Choices:
Rebecca
Silver Linings Playbook
The Last King of Scotland
Pleasantville
Talk to Her
Beauty and the Beast
Batman Begins
A Prairie Home Companion
A Star Is Born
A Place in the Sun
Program:
function: Find
inputs: Jean Cocteau
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: drama film
function: Relate
dependencies: 3
inputs: genre
backward
function: FilterConcept
dependencies: 4
inputs: film
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Jean Cocteau" .  ?e <genre> ?e_2 . ?e_2 <pred:name> "drama film" .  }
Answer: Beauty and the Beast