Question: How many government forms use Arabic as the official language or have a life expectancy that is not equal to 45 years?
Choices:
34
35
36
37
38
39
40
41
42
43
Program:
function: Find
inputs: Arabic
function: Relate
dependencies: 0
inputs: official language
backward
function: FilterConcept
dependencies: 1
inputs: form of government
function: FindAll
function: FilterNum
dependencies: 3
inputs: life expectancy
45 year
!=
function: FilterConcept
dependencies: 4
inputs: form of government
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "form of government" .  { ?e <official_language> ?e_1 . ?e_1 <pred:name> "Arabic" .  } UNION { ?e <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> ?v . FILTER ( ?v != "45"^^xsd:double ) .  } }
Answer: 37