Question: How many editions of film festivals come after the 60th Berlin International Film Festival or take place prior to 2009?
Choices:
7
8
9
10
11
12
13
14
15
16
Answer: 8
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film festival edition" .  { ?e <follows> ?e_1 . ?e_1 <pred:name> "60th Berlin International Film Festival" .  } UNION { ?e <point_in_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2009 ) .  } }
Program:
function: Find
inputs: 60th Berlin International Film Festival
function: Relate
dependencies: 0
inputs: follows
backward
function: FilterConcept
dependencies: 1
inputs: film festival edition
function: FindAll
function: FilterYear
dependencies: 3
inputs: point in time
2009
<
function: FilterConcept
dependencies: 4
inputs: film festival edition
function: Or
dependencies: 2
5
function: Count
dependencies: 6