Question: How many rivers have the official name Danube or are not 55.7 kilometers long?
Choices: 4
5
6
7
8
9
10
11
12
13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" .  { ?e <length> ?pv . ?pv <pred:unit> "kilometre" . ?pv <pred:value> ?v . FILTER ( ?v != "55.7"^^xsd:double ) .  } UNION { ?e <official_name> ?pv . ?pv <pred:value> "Danube" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: length
55.7 kilometre
!=
function: FilterConcept
dependencies: 1
inputs: river
function: FindAll
function: FilterStr
dependencies: 3
inputs: official name
Danube
function: FilterConcept
dependencies: 4
inputs: river
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 8