Question: How many animated feature film are shorter than 10 weeks or were published in a year different from 1999 ?
Choices:
67
68
69
70
71
72
73
74
75
76
Answer: 74
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated feature film" .  { ?e <duration> ?pv . ?pv <pred:unit> "week" . ?pv <pred:value> ?v . FILTER ( ?v != "10"^^xsd:double ) .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1999 ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: duration
10 week
!=
function: FilterConcept
dependencies: 1
inputs: animated feature film
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
1999
!=
function: FilterConcept
dependencies: 4
inputs: animated feature film
function: Or
dependencies: 2
5
function: Count
dependencies: 6