Question: How many visual artworks were released pre-2011 or composed by Leonard Cohen?
Choices:
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2011
<
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: Find
inputs: Leonard Cohen
function: Relate
dependencies: 3
inputs: composer
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
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> "visual artwork" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2011 ) .  } UNION { ?e <composer> ?e_1 . ?e_1 <pred:name> "Leonard Cohen" .  } }
Answer: 2255