Question: How many musicals originate in North Korea or had their debut show sometime other than 1971?
Choices: 3
4
5
6
7
8
9
10
11
12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "musical" .  { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "North Korea" .  } UNION { ?e <date_of_first_performance> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1971 ) .  } }
Program:
function: Find
inputs: North Korea
function: Relate
dependencies: 0
inputs: country of origin
backward
function: FilterConcept
dependencies: 1
inputs: musical
function: FindAll
function: FilterYear
dependencies: 3
inputs: date of first performance
1971
!=
function: FilterConcept
dependencies: 4
inputs: musical
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 10