Question: The Grammy Award nominated to Red Hot Chili Peppers in 1995 was nominated to how many rock bands?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "rock band" . ?e <nominated_for> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "Grammy Award" . ?e_2 <nominated_for> ?e_1 . ?e_2 <pred:name> "Red Hot Chili Peppers" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_1 ] <point_in_time> ?qpv . ?qpv <pred:year> 1995 .   }
Program:
function: Find
inputs: Red Hot Chili Peppers
function: Relate
dependencies: 0
inputs: nominated for
forward
function: QFilterYear
dependencies: 1
inputs: point in time
1995
=
function: FilterConcept
dependencies: 2
inputs: Grammy Award
function: Relate
dependencies: 3
inputs: nominated for
backward
function: FilterConcept
dependencies: 4
inputs: rock band
function: Count
dependencies: 5