Question: How many films are either published after 2009 or are a derivative work of James Bond (the one that presents in work The Living Daylights)?
Choices:
422
423
424
425
426
427
428
429
430
431
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2009
>
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: The Living Daylights
function: Relate
dependencies: 3
inputs: present in work
backward
function: Find
inputs: James Bond
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: derivative work
forward
function: FilterConcept
dependencies: 7
inputs: film
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> "film" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 2009 ) .  } UNION { ?e_1 <derivative_work> ?e . ?e_1 <pred:name> "James Bond" . ?e_1 <present_in_work> ?e_2 . ?e_2 <pred:name> "The Living Daylights" .  } }
Answer: 427