Question: How many North Carolina counties contain the administrative division Charlotte whose population is 34014 and whose area is less than 2300000 square feet?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of North Carolina" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Charlotte" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "34014"^^xsd:double .  ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square foot" . ?pv_1 <pred:value> ?v . FILTER ( ?v < "2300000"^^xsd:double ) .  }
Program:
function: Find
inputs: Charlotte
function: FilterNum
dependencies: 0
inputs: population
34014
=
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: county of North Carolina
function: FindAll
function: FilterNum
dependencies: 4
inputs: area
2300000 square foot
<
function: FilterConcept
dependencies: 5
inputs: county of North Carolina
function: And
dependencies: 3
6
function: Count
dependencies: 7