Question: What was Jason Priestly's last season on Beverly Hills 90210?
Answer(s):
answer: Beverly Hills, 90210 - Season 7

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:tv.tv_program.theme_song ns:m.0n9dsy2 . 
?c ns:tv.tv_program.regular_cast ?y .
?y ns:tv.regular_tv_appearance.seasons ?x .
?y ns:tv.regular_tv_appearance.actor ns:m.01gc7h .
?x ns:tv.tv_series_season.to ?sk0 .
}
ORDER BY DESC(xsd:datetime(?sk0))
LIMIT 1