Question: How many feature films there are published after 2003 or released in Serbia?
Choices:
27
28
29
30
31
32
33
34
35
36
Answer: 30
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 <film_release_region> ?e_1 . ?e_1 <pred:name> "Serbia" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2003
>
function: FilterConcept
dependencies: 1
inputs: feature film
function: Find
inputs: Serbia
function: Relate
dependencies: 3
inputs: film release region
backward
function: FilterConcept
dependencies: 4
inputs: feature film
function: Or
dependencies: 2
5
function: Count
dependencies: 6