Question: How many songs are associated with a literary genre matching the genre of Allen Ginsberg ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "song" . ?e <genre> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "literary genre" . ?e_2 <genre> ?e_1 . ?e_2 <pred:name> "Allen Ginsberg" .   }
Program:
function: Find
inputs: Allen Ginsberg
function: Relate
dependencies: 0
inputs: genre
forward
function: FilterConcept
dependencies: 1
inputs: literary genre
function: Relate
dependencies: 2
inputs: genre
backward
function: FilterConcept
dependencies: 3
inputs: song
function: Count
dependencies: 4