Question: what number of fictional profession in the derivative work of Superman (the one that derives Smallville)?
Choices: 3
4
5
6
7
8
9
10
11
12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "fictional profession" . ?e_1 <derivative_work> ?e . ?e_1 <pred:name> "Superman" . ?e_2 <based_on> ?e_1 . ?e_2 <pred:name> "Smallville" .   }
Program:
function: Find
inputs: Smallville
function: Relate
dependencies: 0
inputs: based on
forward
function: Find
inputs: Superman
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
forward
function: FilterConcept
dependencies: 4
inputs: fictional profession
function: Count
dependencies: 5
Answer: 4