Question: When did mcgee first appear on the program featuring the NCIS Theme Song?
Answer(s):
answer: NCIS - Season 1

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.0n9fhr8 . 
?c ns:tv.tv_program.regular_cast ?y .
?y ns:tv.regular_tv_appearance.seasons ?x .
?y ns:tv.regular_tv_appearance.character ns:m.07wpd_ .
?x ns:tv.tv_series_season.from ?sk0 .
}
ORDER BY xsd:datetime(?sk0)
LIMIT 1