Question: What country speaks Farsi and has a capital called Ray?
Answer(s):
answer: Seljuk Empire

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.032f6)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.032f6 ns:language.human_language.countries_spoken_in ?x .
?x ns:location.country.capital ns:m.01ct0j . 
}