Question: How many video game console models match the platform of Shrek Forever After (distribution format being Blu-ray Disc) or were published on 4th March 2000 ?
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> "video game console model" .  { ?e_1 <platform> ?e . ?e_1 <pred:name> "Shrek Forever After" . ?e_1 <distribution> ?e_2 . ?e_2 <pred:name> "Blu-ray Disc" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:date> "2000-03-04"^^xsd:date .  } }
Program:
function: Find
inputs: Blu-ray Disc
function: Relate
dependencies: 0
inputs: distribution
backward
function: Find
inputs: Shrek Forever After
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: platform
forward
function: FilterConcept
dependencies: 4
inputs: video game console model
function: FindAll
function: FilterDate
dependencies: 6
inputs: publication date
2000-03-04
=
function: FilterConcept
dependencies: 7
inputs: video game console model
function: Or
dependencies: 5
8
function: Count
dependencies: 9