Question: How many big cities share a border with Mannheim or whose population is not 30000?
Choices:
64
65
66
67
68
69
70
71
72
73
Answer: 66
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "big city" .  { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Mannheim" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "30000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Mannheim
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: big city
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
30000
!=
function: FilterConcept
dependencies: 4
inputs: big city
function: Or
dependencies: 2
5
function: Count
dependencies: 6