Question: How many Grammy Awards were won before 1966?
Choices:
20
21
22
23
24
25
26
27
28
29
Answer: 28
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 < 1966 ) .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1991 ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1966
<
function: FilterConcept
dependencies: 1
inputs: Grammy Award
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1991
!=
function: FilterConcept
dependencies: 4
inputs: Grammy Award
function: Or
dependencies: 2
5
function: Count
dependencies: 6