Question: How many rock bands have a genre of rock music in the genre of Randy Jackson (the one whose date of birth is 1955-02-28)?
Choices:
16
17
18
19
20
21
22
23
24
25
Answer: 23
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "rock band" . ?e <genre> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "rock music" . ?e_2 <genre> ?e_1 . ?e_2 <pred:name> "Randy Jackson" . ?e_2 <date_of_birth> ?pv . ?pv <pred:date> "1955-02-28"^^xsd:date .   }
Program:
function: Find
inputs: Randy Jackson
function: FilterDate
dependencies: 0
inputs: date of birth
1955-02-28
=
function: Relate
dependencies: 1
inputs: genre
forward
function: FilterConcept
dependencies: 2
inputs: rock music
function: Relate
dependencies: 3
inputs: genre
backward
function: FilterConcept
dependencies: 4
inputs: rock band
function: Count
dependencies: 5