Question: How many sovereign states are there whose total fertility rate is not 4.8 or that comprise the narrative location of The Motorcycle Diaries ?
Choices:
122
123
124
125
126
127
128
129
130
131
Answer: 126
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" .  { ?e <total_fertility_rate> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "4.8"^^xsd:double ) .  } UNION { ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "The Motorcycle Diaries" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: total fertility rate
4.8
!=
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Find
inputs: The Motorcycle Diaries
function: Relate
dependencies: 3
inputs: narrative location
forward
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: Or
dependencies: 2
5
function: Count
dependencies: 6