Question: How many Grammy Awards did Willie Nelson receive before 1994?
Choices:
25
26
27
28
29
30
31
32
33
34
Answer: 25
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 < 1994 ) .  } UNION { ?e_1 <award_received> ?e . ?e_1 <pred:name> "Willie Nelson" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1994
<
function: FilterConcept
dependencies: 1
inputs: Grammy Award
function: Find
inputs: Willie Nelson
function: Relate
dependencies: 3
inputs: award received
forward
function: FilterConcept
dependencies: 4
inputs: Grammy Award
function: Or
dependencies: 2
5
function: Count
dependencies: 6