Question: The person with CANTIC-ID a10333290 is the lyricist of how many plays?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "play" . ?e <lyrics_by> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_1 <CANTIC-ID> ?pv . ?pv <pred:value> "a10333290" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: CANTIC-ID
a10333290
function: FilterConcept
dependencies: 1
inputs: human
function: Relate
dependencies: 2
inputs: lyrics by
backward
function: FilterConcept
dependencies: 3
inputs: play
function: Count
dependencies: 4