Question: How many visual artworks were either published after 2005 or included Danny Elfman as a performer?
Choices:
768
769
770
771
772
773
774
775
776
777
Answer: 775
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 > 2005 ) .  } UNION { ?e <performer> ?e_1 . ?e_1 <pred:name> "Danny Elfman" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2005
>
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: Find
inputs: Danny Elfman
function: Relate
dependencies: 3
inputs: performer
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: Or
dependencies: 2
5
function: Count
dependencies: 6