Question: How many plays have the title Richard III or the first performance date that is after 1962?
Choices: 6
7
8
9
10
11
12
13
14
15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "play" .  { ?e <title> ?pv . ?pv <pred:value> "Richard III" .  } UNION { ?e <date_of_first_performance> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1962 ) .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
Richard III
function: FilterConcept
dependencies: 1
inputs: play
function: FindAll
function: FilterYear
dependencies: 3
inputs: date of first performance
1962
>
function: FilterConcept
dependencies: 4
inputs: play
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 8