Question: What number of Alabama counties are found in Alabama, with its population of 4447100, or contain Mobile, which is the capital of Mobile County?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: Alabama
function: FilterNum
dependencies: 0
inputs: population
4447100
=
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: county of Alabama
function: Find
inputs: Mobile County
function: Relate
dependencies: 4
inputs: capital of
backward
function: Find
inputs: Mobile
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 8
inputs: county of Alabama
function: Or
dependencies: 3
9
function: Count
dependencies: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Alabama" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "4447100"^^xsd:double .  } UNION { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Mobile" . ?e_1 <capital_of> ?e_2 . ?e_2 <pred:name> "Mobile County" .  } }
Answer: 10