Question: How many singles were published after 2007 or whose producer is David Bowie who is famous for avant-garde?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2007
>
function: FilterConcept
dependencies: 1
inputs: single
function: Find
inputs: avant-garde
function: Relate
dependencies: 3
inputs: famous people
forward
function: Find
inputs: David Bowie
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: producer
backward
function: FilterConcept
dependencies: 7
inputs: single
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> "single" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 2007 ) .  } UNION { ?e <producer> ?e_1 . ?e_1 <pred:name> "David Bowie" . ?e_2 <famous_people> ?e_1 . ?e_2 <pred:name> "avant-garde" .  } }
Answer: 9