Question: What animated character is present in the work Shrek Forever After (the one whose production company is DreamWorks Animation) (the performer of this statement is Antonio Banderas)?
Choices:
Pocahontas
Winnie the Pooh
Puss in Boots
Jonah Hex
Daffy Duck
Lois Lane
Tarzan
Bugs Bunny
Hercules
Shrek
Answer: Puss in Boots
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated character" . ?e <present_in_work> ?e_1 . ?e_1 <pred:name> "Shrek Forever After" . ?e_1 <production_company> ?e_2 . ?e_2 <pred:name> "DreamWorks Animation" .  [ <pred:fact_h> ?e ; <pred:fact_r> <present_in_work> ; <pred:fact_t> ?e_1 ] <performer> ?qpv . ?qpv <pred:value> "Antonio Banderas" .  }
Program:
function: Find
inputs: DreamWorks Animation
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Shrek Forever After
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: present in work
backward
function: QFilterStr
dependencies: 4
inputs: performer
Antonio Banderas
function: FilterConcept
dependencies: 5
inputs: animated character
function: What
dependencies: 6