Question: What is cast member J. K. Simmons's character role in Spider-Man 3, which is distributed by Sony Pictures?
Choices: Commodus
Hulk
Wolverine
Jim Sting
Mrs. Lovett
Pierre Bezukhov
Del Spooner
John Jonah Jameson
Bill Yoast
Tywin Lannister
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Spider-Man 3" . ?e_1 <distributor> ?e_3 . ?e_3 <pred:name> "Sony Pictures" . ?e_2 <pred:name> "J. K. Simmons" . ?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: Sony Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Spider-Man 3
function: And
dependencies: 1
2
function: Find
inputs: J. K. Simmons
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
Answer: John Jonah Jameson