Question: Which star, who had regular TV appearances until the end of 2008, dated Demi Lovato?
Answer(s):
answer: Cody Linley

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.02wb6yq)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
ns:m.02wb6yq ns:base.popstra.celebrity.dated ?y .
?y ns:base.popstra.dated.participant ?x .
?x ns:tv.tv_personality.tv_regular_appearances ?c .
?c ns:tv.tv_regular_personal_appearance.to "2008-11-18"^^xsd:dateTime . 
}