Question: Of the films filmed in New York, which film has a character named, Randall Flagg?
Answer(s):
answer: The Stand

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.02_286)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02_286 ns:tv.tv_location.tv_shows_filmed_here ?x .
?x ns:film.film.starring ?c .
?c ns:film.performance.character ns:m.03ng4b . 
}