Question: How many animated feature films distributed in the United Kingdom were written by Hans Christian Andersen (the one that has the occupation of poet)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated feature film" . ?e <film_distribute_region> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  ?e <after_a_work_by> ?e_2 . ?e_2 <pred:name> "Hans Christian Andersen" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "poet" .  }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: film distribute region
backward
function: FilterConcept
dependencies: 1
inputs: animated feature film
function: Find
inputs: poet
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: Hans Christian Andersen
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: after a work by
backward
function: FilterConcept
dependencies: 7
inputs: animated feature film
function: And
dependencies: 2
8
function: Count
dependencies: 9
Answer: 0