Question: How many historical countries either use English as the official language or have a population not equal to 7.9?
Choices: 8
9
10
11
12
13
14
15
16
17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historical country" .  { ?e <official_language> ?e_1 . ?e_1 <pred:name> "English" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "7.9"^^xsd:double ) .  } }
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: official language
backward
function: FilterConcept
dependencies: 1
inputs: historical country
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
7.9
!=
function: FilterConcept
dependencies: 4
inputs: historical country
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 12