Question: What is the connection between The Amazing Spider-Man (the one whose genre is beat 'em up) to Spider-Man (the one that has Tobey Maguire as a performer)?
Choices: medical treatment
diplomatic relation
director/manager
participant
allegiance
production designer
significant event
symptoms
occupation
characters
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Amazing Spider-Man" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "beat 'em up" . ?e_2 <pred:name> "Spider-Man" . ?e_2 <performer> ?e_4 . ?e_4 <pred:name> "Tobey Maguire" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: beat 'em up
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Amazing Spider-Man
function: And
dependencies: 1
2
function: Find
inputs: Tobey Maguire
function: Relate
dependencies: 4
inputs: performer
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: characters