Question: How many short films are know whose script was written by Jake Gyllenhaal or whose publication took place before 1940 ?
Choices:
7
8
9
10
11
12
13
14
15
16
Answer: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "short film" .  { ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Jake Gyllenhaal" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1940 ) .  } }
Program:
function: Find
inputs: Jake Gyllenhaal
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: FilterConcept
dependencies: 1
inputs: short film
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
1940
<
function: FilterConcept
dependencies: 4
inputs: short film
function: Or
dependencies: 2
5
function: Count
dependencies: 6