Question: Which character in Family Guy who wrote "Stewie's Guide to World Domination" is played by Seth Macfarlane?
Answer(s):
answer: Stewie Griffin

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.019nnl)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.019nnl ns:tv.tv_program.regular_cast ?y .
?y ns:tv.regular_tv_appearance.character ?x .
?y ns:tv.regular_tv_appearance.actor ns:m.021yw7 .
?x ns:book.author.works_written ns:m.03hh_83 . 
}