Question: How many animated series have an end time before 2008 or are based on the Flight of the Conchords (the one that has Jemaine Clement as a cast member)?
Choices:
3
4
5
6
7
8
9
10
11
12
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: end time
2008
<
function: FilterConcept
dependencies: 1
inputs: animated series
function: Find
inputs: Jemaine Clement
function: Relate
dependencies: 3
inputs: cast member
backward
function: Find
inputs: Flight of the Conchords
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: based on
backward
function: FilterConcept
dependencies: 7
inputs: animated series
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated series" .  { ?e <end_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2008 ) .  } UNION { ?e <based_on> ?e_1 . ?e_1 <pred:name> "Flight of the Conchords" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Jemaine Clement" .  } }
Answer: 8