Question: How many plays were composed by Leonard Bernstein or were created prior to 1593?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "play" .  { ?e <composer> ?e_1 . ?e_1 <pred:name> "Leonard Bernstein" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1593 ) .  } }
Program:
function: Find
inputs: Leonard Bernstein
function: Relate
dependencies: 0
inputs: composer
backward
function: FilterConcept
dependencies: 1
inputs: play
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1593
<
function: FilterConcept
dependencies: 4
inputs: play
function: Or
dependencies: 2
5
function: Count
dependencies: 6