Question: How many mechanical waves began before 1930 or after 1920?
Choices:
139
140
141
142
143
144
145
146
147
148
Answer: 147
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "mechanical wave" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1930 ) .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1920 ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1930
<
function: FilterConcept
dependencies: 1
inputs: mechanical wave
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1920
>
function: FilterConcept
dependencies: 4
inputs: mechanical wave
function: Or
dependencies: 2
5
function: Count
dependencies: 6