Question: Which 6 states border the location whose capital is known as Pierre?
Answer(s):
answer: Iowa
answer: Minnesota
answer: Montana
answer: Nebraska
answer: North Dakota
answer: Wyoming

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.administrative_division.capital ?k .
?k ns:location.administrative_division_capital_relationship.capital ns:m.0fw08 . 
?c ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
?x ns:common.topic.notable_types ns:m.0kpys4 .
}