Question: What is the number of filmmaking occupations that is Prince's occupation (who has the genre of rock music)
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: rock music
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Prince
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: occupation
forward
function: FilterConcept
dependencies: 4
inputs: filmmaking occupation
function: Count
dependencies: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "filmmaking occupation" . ?e_1 <occupation> ?e . ?e_1 <pred:name> "Prince" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "rock music" .   }
Answer: 2