Question: How many Netherlands municipalities have a population that is not equal to 1300000 or are a twinned administrative body of Wuhan?
Choices:
7
8
9
10
11
12
13
14
15
16
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "municipality of the Netherlands" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "1300000"^^xsd:double ) .  } UNION { ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Wuhan" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
1300000
!=
function: FilterConcept
dependencies: 1
inputs: municipality of the Netherlands
function: Find
inputs: Wuhan
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: municipality of the Netherlands
function: Or
dependencies: 2
5
function: Count
dependencies: 6