Question: Which US state holds the University of Alabama and has a capital of Montgomery?
Answer(s):
answer: Alabama

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.01wdl3)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.01wdl3 ns:location.location.containedby ?x .
?x ns:location.us_state.capital ns:m.0fttg . 
}