Question: How many fictional professions are related to Superman (which was created by Grant Morrison) and are a derivative work of Superman (which is in the work Batman Beyond)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "fictional profession" . ?e_1 <relative> ?e . ?e_1 <pred:name> "Superman" . ?e_1 <creator> ?e_2 . ?e_2 <pred:name> "Grant Morrison" .  ?e_3 <derivative_work> ?e . ?e_3 <pred:name> "Superman" . ?e_3 <present_in_work> ?e_4 . ?e_4 <pred:name> "Batman Beyond" .  }
Program:
function: Find
inputs: Grant Morrison
function: Relate
dependencies: 0
inputs: creator
backward
function: Find
inputs: Superman
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: relative
forward
function: FilterConcept
dependencies: 4
inputs: fictional profession
function: Find
inputs: Batman Beyond
function: Relate
dependencies: 6
inputs: present in work
backward
function: Find
inputs: Superman
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: derivative work
forward
function: FilterConcept
dependencies: 10
inputs: fictional profession
function: And
dependencies: 5
11
function: Count
dependencies: 12