Question: What is the number of musicals that have the first performance before the year 1970 or not in the year 1949?
Choices:
5
6
7
8
9
10
11
12
13
14
Answer: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "musical" .  { ?e <date_of_first_performance> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1970 ) .  } UNION { ?e <date_of_first_performance> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1949 ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: date of first performance
1970
<
function: FilterConcept
dependencies: 1
inputs: musical
function: FindAll
function: FilterYear
dependencies: 3
inputs: date of first performance
1949
!=
function: FilterConcept
dependencies: 4
inputs: musical
function: Or
dependencies: 2
5
function: Count
dependencies: 6