Question: What is the character role of Tobey Maguire in Spider-Man (the one that has Macy Gray as a cast member)?
Choices:
Hammond Druthers
Arnim Zola
Grandmother Fa
Mark Antony
Catwoman
Abbey Bartlet
Lennie Briscoe
Spider-Man
John Dillinger
Johann Tetzel
Program:
function: Find
inputs: Macy Gray
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 1
2
function: Find
inputs: Tobey Maguire
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Spider-Man" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Macy Gray" . ?e_2 <pred:name> "Tobey Maguire" . ?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: Spider-Man