Question: Academy Award nominee for Best Film Editing, Michael Kahn, was film editor or Tom Hollander was a cast member on how many feature films?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "feature film" .  { ?e <film_editor> ?e_1 . ?e_1 <pred:name> "Michael Kahn" . ?e_1 <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Film Editing" .  } UNION { ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Tom Hollander" .  } }
Program:
function: Find
inputs: Academy Award for Best Film Editing
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Michael Kahn
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: film editor
backward
function: FilterConcept
dependencies: 4
inputs: feature film
function: Find
inputs: Tom Hollander
function: Relate
dependencies: 6
inputs: cast member
backward
function: FilterConcept
dependencies: 7
inputs: feature film
function: Or
dependencies: 5
8
function: Count
dependencies: 9