Question: How many film festivals followed either the 2009 Sundance Film Festival or took place in Berlin?
Choices:
3
4
5
6
7
8
9
10
11
12
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> "2009 Sundance Film Festival" .  } UNION { ?e <location> ?e_1 . ?e_1 <pred:name> "Berlin" .  } }
Program:
function: Find
inputs: 2009 Sundance Film Festival
function: Relate
dependencies: 0
inputs: follows
backward
function: FilterConcept
dependencies: 1
inputs: film festival edition
function: Find
inputs: Berlin
function: Relate
dependencies: 3
inputs: location
backward
function: FilterConcept
dependencies: 4
inputs: film festival edition
function: Or
dependencies: 2
5
function: Count
dependencies: 6