Question: How many Grammy Awards, created before 1995, were awarded to Leonard Cohen ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "Grammy Award" . ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1995 ) . ?e_1 <award_received> ?e . ?e_1 <pred:name> "Leonard Cohen" .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1995
<
function: FilterConcept
dependencies: 1
inputs: Grammy Award
function: Find
inputs: Leonard Cohen
function: Relate
dependencies: 3
inputs: award received
forward
function: FilterConcept
dependencies: 4
inputs: Grammy Award
function: And
dependencies: 2
5
function: Count
dependencies: 6