Question: How many feature films were not published in 1984 or did not earn 5000000 Russian Rubles?
Choices:
51
52
53
54
55
56
57
58
59
60
Answer: 60
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 <box_office> ?pv . ?pv <pred:unit> "Russian ruble" . ?pv <pred:value> ?v . FILTER ( ?v != "5000000"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1984
!=
function: FilterConcept
dependencies: 1
inputs: feature film
function: FindAll
function: FilterNum
dependencies: 3
inputs: box office
5000000 Russian ruble
!=
function: FilterConcept
dependencies: 4
inputs: feature film
function: Or
dependencies: 2
5
function: Count
dependencies: 6