Question: Who portrays the superhero Spider-Man appearing in Spider-Man 3, distributed by Columbia Pictures?
Choices:
Andrew Garfield
Tina Turner
Tobey Maguire
David Boreanaz
Antonio Banderas
Duran Duran
Prince
Madonna
Mike Myers
Nick Nolte
Program:
function: Find
inputs: superhero
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 1
2
function: Find
inputs: Columbia Pictures
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: Spider-Man 3
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: present in work
performer
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Spider-Man" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "superhero" . ?e_2 <pred:name> "Spider-Man 3" . ?e_2 <distributor> ?e_4 . ?e_4 <pred:name> "Columbia Pictures" . ?e_1 <present_in_work> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <present_in_work> ; <pred:fact_t> ?e_2 ] <performer> ?qpv .  }
Answer: Tobey Maguire