Question: How many fictional occupations are from the imaginary world that is the fictional universe of Frankenstein (whose occupation is superhero)?
Choices: 8
9
10
11
12
13
14
15
16
17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "fictional profession" . ?e <from_fictional_universe> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "fictional universe" . ?e_2 <from_fictional_universe> ?e_1 . ?e_2 <pred:name> "Frankenstein" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "superhero" .   }
Program:
function: Find
inputs: superhero
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Frankenstein
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: from fictional universe
forward
function: FilterConcept
dependencies: 4
inputs: fictional universe
function: Relate
dependencies: 5
inputs: from fictional universe
backward
function: FilterConcept
dependencies: 6
inputs: fictional profession
function: Count
dependencies: 7
Answer: 10