Question: What is the number of plays that were published prior to 1597 or that were cited by Star Trek Ⅵ: The Undiscovered Country
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "play" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1597 ) .  } UNION { ?e_1 <cites> ?e . ?e_1 <pred:name> "Star Trek Ⅵ: The Undiscovered Country" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1597
<
function: FilterConcept
dependencies: 1
inputs: play
function: Find
inputs: Star Trek Ⅵ: The Undiscovered Country
function: Relate
dependencies: 3
inputs: cites
forward
function: FilterConcept
dependencies: 4
inputs: play
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1