Question: Tell me the number of films that have a publication date before 1915 or have Michael Shamber as an executive producer.
Choices:
6
7
8
9
10
11
12
13
14
15
Answer: 13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1915 ) .  } UNION { ?e <executive_producer> ?e_1 . ?e_1 <pred:name> "Michael Shamberg" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1915
<
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: Michael Shamberg
function: Relate
dependencies: 3
inputs: executive producer
backward
function: FilterConcept
dependencies: 4
inputs: film
function: Or
dependencies: 2
5
function: Count
dependencies: 6