Question: How many states were a part of European Union and that population count was not 9900?
Choices:
6
7
8
9
10
11
12
13
14
15
Answer: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "European Union" .  ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "9900"^^xsd:double ) .  }
Program:
function: Find
inputs: European Union
function: Relate
dependencies: 0
inputs: has part
forward
function: FilterConcept
dependencies: 1
inputs: state
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
9900
!=
function: FilterConcept
dependencies: 4
inputs: state
function: And
dependencies: 2
5
function: Count
dependencies: 6