Question: What film has the title The Amazing Spider-Man and contains Spider-Man (the one that has Chris Pine as a performer) (the performer of this statement is Andrew Garfield)?
Choices:
Training Day
The Amazing Spider-Man
The Fifth Element
A Prairie Home Companion
Rebecca
Rope
The Towering Inferno
Curse of the Golden Flower
Pleasantville
The Hunchback of Notre Dame
Answer: The Amazing Spider-Man
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <title> ?pv . ?pv <pred:value> "The Amazing Spider-Man" . ?e_1 <present_in_work> ?e . ?e_1 <pred:name> "Spider-Man" . ?e_1 <performer> ?e_2 . ?e_2 <pred:name> "Chris Pine" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <present_in_work> ; <pred:fact_t> ?e ] <performer> ?qpv . ?qpv <pred:value> "Andrew Garfield" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
The Amazing Spider-Man
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: Find
inputs: Chris Pine
function: Relate
dependencies: 3
inputs: performer
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: present in work
forward
function: QFilterStr
dependencies: 7
inputs: performer
Andrew Garfield
function: FilterConcept
dependencies: 8
inputs: visual artwork
function: And
dependencies: 2
9
function: What
dependencies: 10