Question: What school, headquartered in New York City, did President Obama attend?
Answer(s):
answer: Columbia University

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.02mjmr)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02mjmr ns:people.person.education ?y .
?y ns:education.education.institution ?x .
?x ns:organization.organization.headquarters ?c .
?c ns:location.mailing_address.citytown ns:m.02_286 . 
}