Question: How many films follow The Lord of the Rings: The Return of the King (which has David Wenham as a cast member)?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: David Wenham
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Lord of the Rings: The Return of the King
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: follows
backward
function: FilterConcept
dependencies: 4
inputs: film
function: Count
dependencies: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <follows> ?e_1 . ?e_1 <pred:name> "The Lord of the Rings: The Return of the King" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "David Wenham" .   }
Answer: 1