Question: For Spider-Man 3 (the one whose script is wrote by Sam Raimi), what is Willem Dafoe's character role as a cast member in the work?
Choices: Severus Snape
Mayor Tortoise John
Howard Hughes
Larry Flynt
Eugene O'Neill
Green Goblin
Number Three
Charlie Harper
Pamela Anderson
Don
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Spider-Man 3" . ?e_1 <screenwriter> ?e_3 . ?e_3 <pred:name> "Sam Raimi" . ?e_2 <pred:name> "Willem Dafoe" . ?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: Sam Raimi
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Spider-Man 3
function: And
dependencies: 1
2
function: Find
inputs: Willem Dafoe
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
Answer: Green Goblin