Question: What is the connection between Batman Forever (whose genre is action game) and Batman (that develops the The Dark Knight Rises)?
Choices:
distribution
doctoral student
nominated for
cast member
separated from
honorific suffix
characters
subject has role
talk show guest
basic form of government
Answer: characters
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Batman Forever" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "action game" . ?e_2 <pred:name> "Batman" . ?e_2 <derivative_work> ?e_4 . ?e_4 <pred:name> "The Dark Knight Rises" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: action game
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Batman Forever
function: And
dependencies: 1
2
function: Find
inputs: The Dark Knight Rises
function: Relate
dependencies: 4
inputs: derivative work
backward
function: Find
inputs: Batman
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7