Question: How many miniseries are derived from A Single Man, released in 1964, or premiered prior to 2013?
Choices:
17
18
19
20
21
22
23
24
25
26
Program:
function: Find
inputs: A Single Man
function: FilterYear
dependencies: 0
inputs: publication date
1964
=
function: Relate
dependencies: 1
inputs: derivative work
forward
function: FilterConcept
dependencies: 2
inputs: miniseries
function: FindAll
function: FilterYear
dependencies: 4
inputs: start time
2013
<
function: FilterConcept
dependencies: 5
inputs: miniseries
function: Or
dependencies: 3
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "miniseries" .  { ?e_1 <derivative_work> ?e . ?e_1 <pred:name> "A Single Man" . ?e_1 <publication_date> ?pv . ?pv <pred:year> 1964 .  } UNION { ?e <start_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2013 ) .  } }
Answer: 26