Question: How many video games are in country of France or contains Sonic the Hedgehog (which was published 2007-01-30)?
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> "video game" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "France" .  } UNION { ?e_1 <part_of_the_series> ?e . ?e_1 <pred:name> "Sonic the Hedgehog" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "2007-01-30"^^xsd:date .  } }
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: video game
function: Find
inputs: Sonic the Hedgehog
function: FilterDate
dependencies: 3
inputs: publication date
2007-01-30
=
function: Relate
dependencies: 4
inputs: part of the series
forward
function: FilterConcept
dependencies: 5
inputs: video game
function: Or
dependencies: 2
6
function: Count
dependencies: 7