Question: How many arts festivals have an establishment date that is prior to the year 1978 or take place in February (that is the month of the Berlin International Film Festival)?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1978
<
function: FilterConcept
dependencies: 1
inputs: arts festival
function: Find
inputs: Berlin International Film Festival
function: Relate
dependencies: 3
inputs: month of the year
forward
function: Find
inputs: February
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: month of the year
backward
function: FilterConcept
dependencies: 7
inputs: arts festival
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "arts festival" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1978 ) .  } UNION { ?e <month_of_the_year> ?e_1 . ?e_1 <pred:name> "February" . ?e_2 <month_of_the_year> ?e_1 . ?e_2 <pred:name> "Berlin International Film Festival" .  } }
Answer: 4