Question: How many sountrack album were published before 1995, that are derivative works of Alfie (the one that was nominated for Golden Globe Award for Best Screenplay) ?
Choices:
4
5
6
7
8
9
10
11
12
13
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1995
<
function: FilterConcept
dependencies: 1
inputs: soundtrack album
function: Find
inputs: Golden Globe Award for Best Screenplay
function: Relate
dependencies: 3
inputs: nominated for
backward
function: Find
inputs: Alfie
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: derivative work
forward
function: FilterConcept
dependencies: 7
inputs: soundtrack album
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> "soundtrack album" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1995 ) .  } UNION { ?e_1 <derivative_work> ?e . ?e_1 <pred:name> "Alfie" . ?e_1 <nominated_for> ?e_2 . ?e_2 <pred:name> "Golden Globe Award for Best Screenplay" .  } }
Answer: 4