Question: How many video games have been produced from the derivative work of the film that is a part of Batman (the one that followed Batman Returns, and was directed Joel Schumacher)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "video game" . ?e_1 <derivative_work> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "visual artwork" . ?e_1 <part_of_the_series> ?e_3 . ?e_3 <pred:name> "Batman" . ?e_3 <director> ?e_4 . ?e_4 <pred:name> "Joel Schumacher" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <part_of_the_series> ; <pred:fact_t> ?e_3 ] <followed_by> ?qpv . ?qpv <pred:value> "Batman Returns" .   }
Program:
function: Find
inputs: Joel Schumacher
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Batman
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: part of the series
backward
function: QFilterStr
dependencies: 4
inputs: followed by
Batman Returns
function: FilterConcept
dependencies: 5
inputs: visual artwork
function: Relate
dependencies: 6
inputs: derivative work
forward
function: FilterConcept
dependencies: 7
inputs: video game
function: Count
dependencies: 8