Question: How many animated feature films were published about the fictional universe of Shrek, which is a notable work of Cameron Diaz, after 2007?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: Cameron Diaz
function: Relate
dependencies: 0
inputs: notable work
forward
function: Find
inputs: Shrek
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: fictional universe described in
forward
function: FilterConcept
dependencies: 4
inputs: animated feature film
function: FindAll
function: FilterYear
dependencies: 6
inputs: publication date
2007
>
function: FilterConcept
dependencies: 7
inputs: animated feature film
function: And
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated feature film" . ?e_1 <fictional_universe_described_in> ?e . ?e_1 <pred:name> "Shrek" . ?e_2 <notable_work> ?e_1 . ?e_2 <pred:name> "Cameron Diaz" .  ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 2007 ) .  }
Answer: 2