Question: How many animated movies were produced by US resident Max Fleischer or released sometime other than 1994?
Choices: 40
41
42
43
44
45
46
47
48
49
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated film" .  { ?e <producer> ?e_1 . ?e_1 <pred:name> "Max Fleischer" . ?e_1 <residence> ?e_2 . ?e_2 <pred:name> "United States of America" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1994 ) .  } }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: residence
backward
function: Find
inputs: Max Fleischer
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: producer
backward
function: FilterConcept
dependencies: 4
inputs: animated film
function: FindAll
function: FilterYear
dependencies: 6
inputs: publication date
1994
!=
function: FilterConcept
dependencies: 7
inputs: animated film
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 41