Question: Which US city is capital of the administrative territorial entity bordering Weld County?
Choices: Memphis
Minneapolis
Saint Paul
Salt Lake City
Albuquerque
Stamford
Coral Gables
Fort Collins
Richmond
Logan
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <capital_of> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "administrative territorial entity" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Weld County" .   }
Program:
function: Find
inputs: Weld County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: administrative territorial entity
function: Relate
dependencies: 2
inputs: capital of
backward
function: FilterConcept
dependencies: 3
inputs: city of the United States
function: What
dependencies: 4
Answer: Fort Collins