Question: How many singles have the producer David Bowie (the one that has the record label Columbia Records) or have a publication date after 2017?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "single" .  { ?e <producer> ?e_1 . ?e_1 <pred:name> "David Bowie" . ?e_1 <record_label> ?e_2 . ?e_2 <pred:name> "Columbia Records" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 2017 ) .  } }
Program:
function: Find
inputs: Columbia Records
function: Relate
dependencies: 0
inputs: record label
backward
function: Find
inputs: David Bowie
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: producer
backward
function: FilterConcept
dependencies: 4
inputs: single
function: FindAll
function: FilterYear
dependencies: 6
inputs: publication date
2017
>
function: FilterConcept
dependencies: 7
inputs: single
function: Or
dependencies: 5
8
function: Count
dependencies: 9