Question: How many unitary states have a diplomatic relation with Iran or whose life expectancy is not 11.8 year?
Choices: 14
15
16
17
18
19
20
21
22
23
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "unitary state" .  { ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Iran" .  } UNION { ?e <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> ?v . FILTER ( ?v != "11.8"^^xsd:double ) .  } }
Program:
function: Find
inputs: Iran
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: FilterConcept
dependencies: 1
inputs: unitary state
function: FindAll
function: FilterNum
dependencies: 3
inputs: life expectancy
11.8 year
!=
function: FilterConcept
dependencies: 4
inputs: unitary state
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 15