Question: How many literary awards were established before 1966 or were nominated to playwright Henry James?
Choices:
7
8
9
10
11
12
13
14
15
16
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1966
<
function: FilterConcept
dependencies: 1
inputs: literary award
function: Find
inputs: playwright
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: Henry James
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: nominated for
forward
function: FilterConcept
dependencies: 7
inputs: literary award
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> "literary award" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1966 ) .  } UNION { ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "Henry James" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "playwright" .  } }
Answer: 10