Question: How many awards for science were established earlier than 1969 or bestowed on Moe Howard?
Choices:
7
8
9
10
11
12
13
14
15
16
Answer: 8
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "science award" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1969 ) .  } UNION { ?e <winner> ?e_1 . ?e_1 <pred:name> "Moe Howard" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1969
<
function: FilterConcept
dependencies: 1
inputs: science award
function: Find
inputs: Moe Howard
function: Relate
dependencies: 3
inputs: winner
backward
function: FilterConcept
dependencies: 4
inputs: science award
function: Or
dependencies: 2
5
function: Count
dependencies: 6