Question: How many films were not published in 2018 or in 2012?
Choices:
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
Answer: 2530
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2018 ) .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> 2012 .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2018
!=
function: FilterConcept
dependencies: 1
inputs: film
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
2012
=
function: FilterConcept
dependencies: 4
inputs: film
function: Or
dependencies: 2
5
function: Count
dependencies: 6