Question: How many feature films were either published before 2003 or not in 2012?
Choices:
54
55
56
57
58
59
60
61
62
63
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 < 2003 ) .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2012 ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2003
<
function: FilterConcept
dependencies: 1
inputs: feature film
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
2012
!=
function: FilterConcept
dependencies: 4
inputs: feature film
function: Or
dependencies: 2
5
function: Count
dependencies: 6