Question: How many plays derive Henry V (that has Emma Thompson as a cast member) or have its date of first performance after 1953?
Choices:
7
8
9
10
11
12
13
14
15
16
Program:
function: Find
inputs: Emma Thompson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Henry V
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
backward
function: FilterConcept
dependencies: 4
inputs: play
function: FindAll
function: FilterYear
dependencies: 6
inputs: date of first performance
1953
>
function: FilterConcept
dependencies: 7
inputs: play
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "play" .  { ?e <derivative_work> ?e_1 . ?e_1 <pred:name> "Henry V" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Emma Thompson" .  } UNION { ?e <date_of_first_performance> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1953 ) .  } }
Answer: 11