Question: How many video games are the origins of the name Prince of Persia: The Sands of Time (the one whose publication date is 2010-06-10) or have a publication date before 2001?
Choices:
54
55
56
57
58
59
60
61
62
63
Answer: 62
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "video game" .  { ?e_1 <named_after> ?e . ?e_1 <pred:name> "Prince of Persia: The Sands of Time" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "2010-06-10"^^xsd:date .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2001 ) .  } }
Program:
function: Find
inputs: Prince of Persia: The Sands of Time
function: FilterDate
dependencies: 0
inputs: publication date
2010-06-10
=
function: Relate
dependencies: 1
inputs: named after
forward
function: FilterConcept
dependencies: 2
inputs: video game
function: FindAll
function: FilterYear
dependencies: 4
inputs: publication date
2001
<
function: FilterConcept
dependencies: 5
inputs: video game
function: Or
dependencies: 3
6
function: Count
dependencies: 7