Question: Which person both wrote Star Trek V: The Final Frontier and played Captain Kirk?
Answer(s):
answer: William Shatner

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.0crtw)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.0crtw ns:tv.tv_character.appeared_in_tv_program ?y .
?y ns:tv.regular_tv_appearance.actor ?x .
?x ns:film.writer.film ns:m.012gk9 . 
}