Question: How many feature films derive Battleship (which was released for Xbox 360) or has Anna Faris as a voice actor?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "feature film" .  { ?e <derivative_work> ?e_1 . ?e_1 <pred:name> "Battleship" . ?e_1 <platform> ?e_2 . ?e_2 <pred:name> "Xbox 360" .  } UNION { ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Anna Faris" .  } }
Program:
function: Find
inputs: Xbox 360
function: Relate
dependencies: 0
inputs: platform
backward
function: Find
inputs: Battleship
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
backward
function: FilterConcept
dependencies: 4
inputs: feature film
function: Find
inputs: Anna Faris
function: Relate
dependencies: 6
inputs: voice actor
backward
function: FilterConcept
dependencies: 7
inputs: feature film
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2