Question: How many animated films are in the same film genre as Jane Eyre (whose start time is 2006-09-24)?
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated film" . ?e <genre> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "film genre" . ?e_2 <genre> ?e_1 . ?e_2 <pred:name> "Jane Eyre" . ?e_2 <start_time> ?pv . ?pv <pred:date> "2006-09-24"^^xsd:date .   }
Program:
function: Find
inputs: Jane Eyre
function: FilterDate
dependencies: 0
inputs: start time
2006-09-24
=
function: Relate
dependencies: 1
inputs: genre
forward
function: FilterConcept
dependencies: 2
inputs: film genre
function: Relate
dependencies: 3
inputs: genre
backward
function: FilterConcept
dependencies: 4
inputs: animated film
function: Count
dependencies: 5