Question: How many superheroes exist in the fictional universe of Superman (the one that derives Superman IV: The Quest for Peace)?
Choices: 9
10
11
12
13
14
15
16
17
18
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "superhero" . ?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> "Superman" . ?e_3 <based_on> ?e_2 . ?e_3 <pred:name> "Superman IV: The Quest for Peace" .   }
Program:
function: Find
inputs: Superman IV: The Quest for Peace
function: Relate
dependencies: 0
inputs: based on
forward
function: Find
inputs: Superman
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: superhero
function: Count
dependencies: 7
Answer: 10