"Which characters on Friends have an end time for work at 2004-0-0?"
SELECT ?answer WHERE { wd:/Friends/ wdt:/characters/ ?answer . ?answer wdt:/work period (end)/ ?x FILTER(contains(YEAR(?x),'2004'))}