Question: How many filmmaking occupations are different from cinematographer or are the occupation of Forest Whitaker?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "filmmaking occupation" .  { ?e <different_from> ?e_1 . ?e_1 <pred:name> "cinematographer" .  } UNION { ?e_1 <occupation> ?e . ?e_1 <pred:name> "Forest Whitaker" .  } }
Program:
function: Find
inputs: cinematographer
function: Relate
dependencies: 0
inputs: different from
backward
function: FilterConcept
dependencies: 1
inputs: filmmaking occupation
function: Find
inputs: Forest Whitaker
function: Relate
dependencies: 3
inputs: occupation
forward
function: FilterConcept
dependencies: 4
inputs: filmmaking occupation
function: Or
dependencies: 2
5
function: Count
dependencies: 6