Question: How many independent German cities do not report 450 million inhabitants or are twin cities of Yuma (the one with the area of 313.620528 square km) ?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city of Germany" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "450000000"^^xsd:double ) .  } UNION { ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Yuma" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "313.620528"^^xsd:double .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
450000000
!=
function: FilterConcept
dependencies: 1
inputs: independent city of Germany
function: Find
inputs: Yuma
function: FilterNum
dependencies: 3
inputs: area
313.620528 square kilometre
=
function: Relate
dependencies: 4
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 5
inputs: independent city of Germany
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 5