Question: Baton Rouge is bordered by which US city?
Choices:
Claremont
Helena
New Haven
Selma
Columbus
Kingston
Waukegan
Alexandria
Franklin
Alton
Program:
function: Find
inputs: Baton Rouge
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Baton Rouge" .   }
Answer: Alexandria