Question: What is the number of Alabama counties that are an administrative division of Alabama (whose native name is the State of Alabama) and have a beginning date before 1818?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Alabama" . ?e_1 <native_label> ?pv . ?pv <pred:value> "State of Alabama" .  ?e <inception> ?pv_1 . ?pv_1 <pred:year> ?v . FILTER ( ?v < 1818 ) .  }
Program:
function: Find
inputs: Alabama
function: FilterStr
dependencies: 0
inputs: native label
State of Alabama
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: county of Alabama
function: FindAll
function: FilterYear
dependencies: 4
inputs: inception
1818
<
function: FilterConcept
dependencies: 5
inputs: county of Alabama
function: And
dependencies: 3
6
function: Count
dependencies: 7
Answer: 6