Question: How many video game console models did not discontinue in 2013 or sold over 480000000 units?
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 console model" .  { ?e <discontinued_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2013 ) .  } UNION { ?e <units_sold> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "480000000"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: discontinued date
2013
!=
function: FilterConcept
dependencies: 1
inputs: video game console model
function: FindAll
function: FilterNum
dependencies: 3
inputs: units sold
480000000
>
function: FilterConcept
dependencies: 4
inputs: video game console model
function: Or
dependencies: 2
5
function: Count
dependencies: 6