Question: What is the character role of Kevin Spacey in Superman Returns (the one that has James Marsden as a cast member)?
Choices:
Sheriff of Nottingham
Eben Olemaun
John Seward
Lex Luthor
Lestat de Lioncourt
Lucius Malfoy
Mrs. Potato Head
Cousin Randy
John Adams Gates
Doctor Doppler
Program:
function: Find
inputs: James Marsden
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Superman Returns
function: And
dependencies: 1
2
function: Find
inputs: Kevin Spacey
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Superman Returns" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "James Marsden" . ?e_2 <pred:name> "Kevin Spacey" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Answer: Lex Luthor