Question: How many soundtrack albums are titled A Star Is Born: Soundtrack or have the release date that is not in 1998?
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "soundtrack album" .  { ?e <title> ?pv . ?pv <pred:value> "A Star Is Born: Soundtrack" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1998 ) .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
A Star Is Born: Soundtrack
function: FilterConcept
dependencies: 1
inputs: soundtrack album
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
1998
!=
function: FilterConcept
dependencies: 4
inputs: soundtrack album
function: Or
dependencies: 2
5
function: Count
dependencies: 6