Question: How many action games belong to the genre of Toy Story (published by Disney Interactive Studios), or of Harry Potter and the Half-Blood Prince ( released for Xbox 360)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Disney Interactive Studios
function: Relate
dependencies: 0
inputs: publisher
backward
function: Find
inputs: Toy Story
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: genre
forward
function: FilterConcept
dependencies: 4
inputs: action game
function: Find
inputs: Xbox 360
function: Relate
dependencies: 6
inputs: platform
backward
function: Find
inputs: Harry Potter and the Half-Blood Prince
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: genre
forward
function: FilterConcept
dependencies: 10
inputs: action game
function: Or
dependencies: 5
11
function: Count
dependencies: 12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "action game" .  { ?e_1 <genre> ?e . ?e_1 <pred:name> "Toy Story" . ?e_1 <publisher> ?e_2 . ?e_2 <pred:name> "Disney Interactive Studios" .  } UNION { ?e_1 <genre> ?e . ?e_1 <pred:name> "Harry Potter and the Half-Blood Prince" . ?e_1 <platform> ?e_2 . ?e_2 <pred:name> "Xbox 360" .  } }
Answer: 2