Question: Tell me the administrative territorial entity that has Columbia (the one that is the South Carolina capital)
Choices:
Lexington County
Kent County
Washoe County
Delaware County
Lee County
African Union
Jefferson County
Cass County
Queens
Maui County
Answer: Lexington County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Columbia" . ?e_2 <capital> ?e_1 . ?e_2 <pred:name> "South Carolina" .   }
Program:
function: Find
inputs: South Carolina
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Columbia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity
function: What
dependencies: 5