Question: How many Alabama counties, whose population is different from 30,000, are located in Alabama (whose total population is 3,266,740) ?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "30000"^^xsd:double ) . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Alabama" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3266740"^^xsd:double .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
30000
!=
function: FilterConcept
dependencies: 1
inputs: county of Alabama
function: Find
inputs: Alabama
function: FilterNum
dependencies: 3
inputs: population
3266740
=
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 5
inputs: county of Alabama
function: And
dependencies: 2
6
function: Count
dependencies: 7