Question: Which administrative territorial entity has the capital Charleston (whose official name is Charleston) and is in South Carolina?
Choices:
African Union
Cass County
York County
Charleston County
Washoe County
Delaware County
Lee County
Lexington County
Orange County
Kent County
Program:
function: Find
inputs: Charleston
function: FilterStr
dependencies: 0
inputs: official name
Charleston
function: Relate
dependencies: 1
inputs: capital
backward
function: FilterConcept
dependencies: 2
inputs: administrative territorial entity
function: Find
inputs: South Carolina
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 5
inputs: administrative territorial entity
function: And
dependencies: 3
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Charleston" . ?e_1 <official_name> ?pv . ?pv <pred:value> "Charleston" .  ?e <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "South Carolina" .  }
Answer: Charleston County