Question: What number of movies were published before 1984 or succeeded by The Flintstones in Viva Rock Vegas?
Choices: 3
4
5
6
7
8
9
10
11
12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "feature film" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1984 ) .  } UNION { ?e <followed_by> ?e_1 . ?e_1 <pred:name> "The Flintstones in Viva Rock Vegas" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1984
<
function: FilterConcept
dependencies: 1
inputs: feature film
function: Find
inputs: The Flintstones in Viva Rock Vegas
function: Relate
dependencies: 3
inputs: followed by
backward
function: FilterConcept
dependencies: 4
inputs: feature film
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 9