Question: How many states have a rate of fertility different from 6.9 or belong to the country of Liechtenstein?
Choices: 16
17
18
19
20
21
22
23
24
25
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" .  { ?e <total_fertility_rate> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "6.9"^^xsd:double ) .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Liechtenstein" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: total fertility rate
6.9
!=
function: FilterConcept
dependencies: 1
inputs: state
function: Find
inputs: Liechtenstein
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: state
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 24