Question: How many singles are in the film score genre or have a post-1977 release year?
Choices:
21
22
23
24
25
26
27
28
29
30
Program:
function: Find
inputs: film score
function: Relate
dependencies: 0
inputs: genre
backward
function: FilterConcept
dependencies: 1
inputs: single
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
1977
>
function: FilterConcept
dependencies: 4
inputs: single
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "single" .  { ?e <genre> ?e_1 . ?e_1 <pred:name> "film score" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1977 ) .  } }
Answer: 24