Question: How many miniseries follow The Diary of Anne Frank whose number of seasons is 1 or whose publication date is not in 1974?
Choices: 35
36
37
38
39
40
41
42
43
44
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "miniseries" .  { ?e <follows> ?e_1 . ?e_1 <pred:name> "The Diary of Anne Frank" . ?e_1 <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "1"^^xsd:double .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1974 ) .  } }
Program:
function: Find
inputs: The Diary of Anne Frank
function: FilterNum
dependencies: 0
inputs: number of seasons
1
=
function: Relate
dependencies: 1
inputs: follows
backward
function: FilterConcept
dependencies: 2
inputs: miniseries
function: FindAll
function: FilterYear
dependencies: 4
inputs: publication date
1974
!=
function: FilterConcept
dependencies: 5
inputs: miniseries
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 37